rand_ortho_vector¶
Get a random unit vector orthogonal to u
.
Arguments¶
u
- A unit vector.
Return values¶
v
- A random unit vector orthogonal tou
.
Note¶
This function is stochastic. For reproducibility set the PRNG seed with
cluseed()
as discussed in the Reference.