News for hackers. Stuff that matters.
Re:Random with care by madcaptenor on Friday January 05, 2018 @05:09PM (#16082185)
Longitude on the sphere is uniformly distributed. Latitude isn't. If you chose the angle in [0, pi) (the "colatitude" - https://en.wikipedia.org/wiki/Colatitude) from the right distribution this would work. See for example https://en.wikibooks.org/wiki/Mathematica/Uniform_Spherical_... - it looks like selecting 2 arcsin sqrt(X), where X is uniform on [0, 1], does the trick.

There are no comments on this comment yet.