1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-04-14 11:11:55 +02:00
This commit is contained in:
Justin Lin 2019-08-16 09:45:06 +08:00
parent a5039c8f5a
commit fcb0d89a27

19
docs/lib2-rand.md Normal file
View 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));