Modding
Discord Wishlist on Steam

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

Pick somealllistcount2picked
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.

StartalllistcountShufflealllistshuffledmixed =valuevalueForfirst0lastLoop bodyDoneindex−mixedGetlistindexitemIs nothingvalueresultBranchconditiontruefalseoutAdd to listalllistitemoutReturnallpicked
Pick some

Built from