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
phi = Rand.Uniform(-PI,PI);
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,