Q 5. Give a method for generating a random variable having density function f(x)={ e 2x
,
e −2x
,

−[infinity] 0 ​
use a method of simulation (i.e acceptance-rejection, inverse transform, composition....)