I believe that by saying
X=drand48() Y=drand48()
because the drand48() function produces indep RVs you can say:
D=X^2+Y^2
Just like in problem 4 of homework 6.
I believe that by saying
X=drand48() Y=drand48()
because the drand48() function produces indep RVs you can say:
D=X^2+Y^2
Just like in problem 4 of homework 6.