Function to generate a random vector uniformly distributed in a sphere
Generates a random vector from a uniform distribution in a sphere centered at the origin
Dimension of the random vector to be generated
Radius of the sphere
The function is not vectorized: it is intended to generate one random vector at a time.
An pseudo-random vector from a uniform distribution in the
n-dimensional sphere centered at the origin and having radius
Giovanni Petris GPetris@uark.edu