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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
x | yes | - | x-coordinate of the center | |
y | yes | - | y-coordinate of the center | |
radius | yes | - | Radius of the circle | |
outline | - | true | true=circumference, false=inside | |
count | - | 1 | number of points to return |