Let X be exponential(lambda), and let Y=max(1,X).
Find the cdf of Y. Also sketch the cdf.
Suppose that X is discrete with pmf p(0)=p(1)=2p(2) (and zero otherwise).
Find the pmf and cdf of X.
How would you simulate the random variable X starting with U, a uniform[0,1] random variable?