Generates a random vector from a uniform distribution in a sphere centered at the origin
rballunif(n,d)
Dimension of the random vector to be generated
Radius of the sphere
An pseudo-random vector from a uniform distribution in the
n
-dimensional sphere centered at the origin and having radius
d
The function is not vectorized: it is intended to generate one random vector at a time.