next up previous contents index
Next: Function linear_interpolate Up: Module linearalgebra_module Previous: Function unit_vector   Contents   Index

Function random_unit_vector


\begin{boxedminipage}{\textwidth}
\begin{verbatim}v = random_unit_vector\end{verbatim}
\end{boxedminipage}

Returns a random unit vector which is uniformly distributed over the unit sphere [See Knop, CACM 13 326 (1970)].

Return value -- real(dp), dimension(3)

linear_interpolate function

gabor 2009-06-30