Simulation by inverse transform
inverse_transform(cdf)
cdf
A function; the distribution function of a random variable.