Uniform random (Monte-Carlo) distribution on unit sphere
Here’s an algorithm that allows you to generate points randomly distributed on the unit sphere.
Here’s an algorithm that allows you to generate points randomly distributed on the unit sphere.
You can try using an existing Java implementation (or this one) for a Mersenne Twister. Keep in mind most MT’s are not cryptographically secure.