PLAYGROUND (experimental)

randcircle

Returns the random coordinates of a point (or several points) inside a circle, or on its circumference.
randcircle(
    x, 
    y, 
    radius, 
    [outline=true], 
    [count=1]
) -> LIST [x,y]

Returns the random coordinates of a point (or several points) inside a circle, or on its circumference.

Syntaxe

var pt = randdisc(x=20, y=15, radius=100, outline=true);

Arguments

NameTypeRequiredDefaultDescription
xyes-x-coordinate of the center
yyes-y-coordinate of the center
radiusyes-Radius of the circle
outline-truetrue=circumference, false=inside
count-1number of points to return