Modding
Discord Wishlist on Steam

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.

Shufflealllistshuffled
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.

StartalllistCopy listlistresultleft =valuevalueWhileconditionLoop bodyDoneleftCountlistresult>leftCountlistresult−Random whole numberleast0mostresultat =valuevalueleftatGetlistindexitemoutAdd to listalllistitemleftatRemove atalllistindexoutReturnallshuffled
Shuffle

Built from