I have the cdf of a random variable H:
G(h) = 2x for 0 < h < 2 1 otherwise
How can I generate 10,000 observations from