Regarding Seraj's solution, i believe the solution would be
$ \sqrt(A) cos(2pi*drand48()) $
where A is still the exponential RV calculated in 1b.
Regarding Seraj's solution, i believe the solution would be
$ \sqrt(A) cos(2pi*drand48()) $
where A is still the exponential RV calculated in 1b.