Hacker News new | ask | show | jobs
by pontus 2018 days ago
Yes, that's right.

I haven't verified it but suspect that you might be able to improve on this by generating the coordinates in order, constantly decreasing the range to ensure that the point falls within the sphere. Then, to ensure spherical symmetry, you randomly shuffle the points at the end.