runif_disk | R Documentation |
Returns points uniformly sampled from disk of radius r in plane
runif_disk(n, r = 1)
n |
number of points to sample |
r |
radius of disk |
points n by 2 matrix of points sampled
# Sample 100 points from unit disk
runif_disk(100)
# Sample 100 points from disk of radius 0.7
runif_disk(100, 0.7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.