Uniform Rotation of a vector in 3d space

Hi,
Let’s say I have vector v1 (x,y,z);
Now I want to rotate the vector in 3d so that we get a uniform sphere.
Towards this, I did
v.RotateX(phi);
v.RotateY(theta);
v.RotateZ(psi);
where
phi = Rand.Uniform(-PI,PI);
theta= Rand.Uniform(-PI_2,PI_2);
psi = Rand.Uniform(-PI,PI);

Now the problem is when I do that I get an intense count on the pole along Z-axis.
Can anybody help me to resolve this issue so that I can generate a uniformly distributed spherical distribution?
Thanks in advance,
A

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.