Library›Lists
Pick some
fn/game.PickSome
So many items of a list picked by chance, each at most once (fewer when the list is shorter).
- Does
- An action: done when the run reaches it
- Runs
- On every machine
- Listed under
- Library › Lists
- In a file
fn/game.PickSome
Pins
- inlista list
The list.
- incounta whole number
How many.
Starts as
2 - outpickeda list
Picked.
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
- Shuffle
fn/game.ShuffleA copy of a list in a new order picked by chance. - For
flow/ForDoes Body for every whole number from First to Last, both counting, then Done. - Subtract
math/SubtractThe first less the others. - Get
list/GetThe item at a place in a list, the first at 0; nothing past its end. - Is nothing
math/IsNothingWhether a value is empty - Branch
flow/BranchGoes one way when the condition holds, the other way when it doesn't. - Add to list
list/AddPuts an item at the end of a list.
Modding