mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-16 13:50:05 +01:00
500 B
500 B
pp_disk
Generate random points over a disk.
Since: 3.3
Parameters
radius
: The radius of the disk.value_count
: Number of random numbers to return as a vector.seed
: Optional. Seed value for random number generator for repeatable results.
Examples
use <pp/pp_disk.scad>
number = 10000;
radius = 2;
points = pp_disk(radius, number);
for(p = points) {
translate(p)
circle(.01);
}