- #1
member 428835
Hi PF!
Given three random numbers between 0 and 1, how to evenly populate a sphere of radius ##R## (assuming we use every point). I think it's similar to the 2D circle equivalent described here. Does this imply the PDF is ##4 x^2##, where the remaining analysis holds? Then one point is the polar angle, one is the azimuthal angle, and the last is the radius, which I guess is ##(3/4x)^{1/3}## where ##x## is the third random number generated.
Given three random numbers between 0 and 1, how to evenly populate a sphere of radius ##R## (assuming we use every point). I think it's similar to the 2D circle equivalent described here. Does this imply the PDF is ##4 x^2##, where the remaining analysis holds? Then one point is the polar angle, one is the azimuthal angle, and the last is the radius, which I guess is ##(3/4x)^{1/3}## where ##x## is the third random number generated.