1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-25 05:51:41 +02:00
Files
dotSCAD/docs/lib3x-rands_disk.md
2022-06-14 08:56:43 +08:00

520 B

rands_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_value : Optional. Seed value for random number generator for repeatable results.

Examples

use <util/rands_disk.scad>

number = 10000;
radius = 2;

points = rands_disk(radius, number);

for(p = points) {
    translate(p)
        circle(.01);
}

rands_disk