Random number generation from unit sphere.
This function generates random numbers from p-dimensional unit sphere.
runifsphere(n, p = 2)
n
: number of random samples.p
: dimension of the unit sphere.x <- runifsphere(n = 100) plot(x)
Daniel Kosiorowski, Mateusz Bocian, Anna Wegrzynkiewicz and Zygmunt Zawadzki from Cracow University of Economics.
Useful links