I encountered a question in one of the books, which asked to generate a fairly hefty data set X that is approximately exponentially distributed with μ = 0.7.
I can do it for approximately normally distributed, but could not think how to do it for approximately exponentially distributed.
Does anyone know about it ?
If you can generate a Uniform $[0,1]$ random variable $U$, then $-0.7 \log(U)$ has an exponential distribution with $\mu = 0.7$.