Generates a random point on a sphere.
var sphereRandom = require('sphere-random')
for(var i=1; i<5; ++i) {
console.log(sphereRandom(i))
}
npm install sphere-random
Generates a random point on the surface of a d-dimensional hypersphere
d
is the dimension of the sphere to sample
Returns A point on the surface of a d-dimensional sphere
(c) 2014 Mikola Lysenko. MIT License