powered by
This function generates random numbers from p-dimensional unit sphere.
runifsphere(n, p = 2)
number of random samples.
dimension of the unit sphere.
# NOT RUN { x <- runifsphere(n = 100) plot(x) # }
Run the code above in your browser using DataLab