| >Let me know if I am wrong. You're wrong on multiple levels. 1. Generating random values for x^2, y^2, z^2 and taking their square root will only give you values in the x,y,z > 0 octant. (But let's say you "fix" this by randomly multiplying them with -1.) 2. Taking the square root of a uniformly distributed random variable is no longer uniformly distributed. 3. Randomly reordering the coordinates won't fix your bias. Here's a demonstration in 2D: https://jsfiddle.net/tz85wnxy/59/ Uncomment line 17, 18, 20 to see how it's still not uniform even if you randomly multiply the coordinates by -1 and reorder them. |
Same process but minor tweak.
https://jsfiddle.net/w8zLvsy2/