Function to sample uniformly distributed observations on the unit sphere.
number of random samples.
dimension of the unit sphere.
Oja, H. (2010), Multivariate Nonparametric Methods with R, Springer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.