| runif_annulus | R Documentation | 
Returns points uniformly sampled from annulus in plane
runif_annulus(n, rmax = 1, rmin = 0.5)
| n | number of points to sample | 
| rmax | radius of outer circle of annulus | 
| rmin | radius of inner circle of annulus | 
n by 2 matrix of points sampled
# Sample 100 points from annulus with rmax=1 and rmin=0.5
runif_annulus(100)
# Sample 100 points from annulus with rmax=0.75 and rmin=0.25
runif_annulus(100, 0.75, 0.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.