Library›Lists
Shuffle
fn/game.Shuffle
A copy of a list in a new order picked by chance. The list given stays as it was.
- Does
- An action: done when the run reaches it
- Runs
- On every machine
- Listed under
- Library › Lists
- In a file
fn/game.Shuffle
Pins
- inlista list
The list.
- outshuffleda list
Shuffled.
How it is made
Its body, as the bench opens it read-only. Copy into my mod on the bench makes a copy to change. The library's file is lists.graph.json.
Built from
- Copy list
list/CopyA list of its own with the same items. - While
flow/WhileDoes Body again and again while the condition holds, then Done. - Count
list/CountHow many items a list has. - Greater
math/GreaterWhether A is more than B. - Subtract
math/SubtractThe first less the others. - Random whole number
math/RandomWholeA whole number from least to most by chance, both may come. - Get
list/GetThe item at a place in a list, the first at 0; nothing past its end. - Add to list
list/AddPuts an item at the end of a list. - Remove at
list/RemoveAtTakes out the item at a place, the first at 0.
Modding