mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-01 18:54:39 +02:00
add choose
This commit is contained in:
16
docs/lib2x-choose.md
Normal file
16
docs/lib2x-choose.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# choose
|
||||
|
||||
Choose an element from the given list randomly.
|
||||
|
||||
**Since:** 2.5
|
||||
|
||||
## Parameters
|
||||
|
||||
- `choices` : The list to choose from.
|
||||
- `seed` : Random seed value.
|
||||
|
||||
## Examples
|
||||
|
||||
use <util/choose.scad>;
|
||||
|
||||
echo(choose([1, 2, 3, 4]));
|
Reference in New Issue
Block a user