mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-04-14 11:11:55 +02:00
add doc
This commit is contained in:
parent
a5039c8f5a
commit
fcb0d89a27
19
docs/lib2-rand.md
Normal file
19
docs/lib2-rand.md
Normal file
@ -0,0 +1,19 @@
|
||||
# rand
|
||||
|
||||
Random number generator. Generates a pseudo random number.
|
||||
|
||||
## Parameters
|
||||
|
||||
- `min_value` : Minimum value of random number range.
|
||||
- `max_value` : Maximum value of random number range.
|
||||
- `seed_value` : Optional. Seed value for random number generator for repeatable results.
|
||||
|
||||
## Examples
|
||||
|
||||
include <util/rand.scad>;
|
||||
|
||||
echo(rand());
|
||||
echo(rand(1, 10));
|
||||
echo(rand(seed_value = 4));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user