Example 1 Suppose, we want to generate a random variable with the PDF given by The CDF of is given by