I have a vector A(x, y, z). Now I want to rotate the vector randomly (x by $\phi$, y by $\theta$ and z by $\psi$) in the 3D plane.
I want to pick points randomly on a sphere so that they are uniformly distributed. Preferably in the Cartesian coordinate.
One solution is to pick λ ∈ [-180°, 180°) as before and then set φ = cos-1(2x - 1), where x is uniformly distributed and x ∈ [0, 1).