Randomization nodes

Configure these nodes in the flow editor; Random Nodes has no connection to set up. Connect a trigger to the node's Execute input, configure its range or choices, then connect the appropriate output to the next step. A connected input overrides the matching property. Save and run the flow.

Use Random Number for a numeric value, Random Choice for a choice from text, Chance Gate to branch by probability, or Random Delay to vary timing.

Random

Random Number

Picks a random number between Min and Max.

Random NumberExecuteMinMaxDoneValueInteger
Inputs
ExecuteFlow
MinNumber
MaxNumber
Outputs
DoneFlow
ValueNumber
A random decimal from Min up to Max.
IntegerNumber
Value rounded to the nearest whole number.
Properties
Min
Default 0.
Max
Default 100.

If Min is greater than Max, the two are swapped.

Random Choice

Picks one item from a list.

Random ChoiceExecuteChoicesDoneChoiceIndexCount
Inputs
ExecuteFlow
ChoicesString
Overrides the property when connected and not empty.
Outputs
DoneFlow
ChoiceString
IndexNumber
Position of the choice, counting from 0.
CountNumber
How many items the list had.
Properties
Choices
Items separated by commas or new lines. Default one, two, three.

Spaces around items are trimmed and empty items are skipped. An empty list gives an empty Choice, an Index of -1, and a Count of 0.

Chance Gate

Sends flow one of two ways at random.

Chance GateExecuteChance %SuccessFailureRoll
Inputs
ExecuteFlow
Chance %Number
Outputs
SuccessFlow
Runs with the given chance.
FailureFlow
Runs otherwise.
RollNumber
The random roll, from 0 up to 100.
Properties
Chance %
The chance of taking Success, 0 to 100. Default 50.

Random Delay

Waits a random time, then continues.

Random DelayExecuteMin msMax msDoneDelay ms
Inputs
ExecuteFlow
Min msNumber
Max msNumber
Outputs
DoneFlow
Delay msNumber
How long it waited.
Properties
Min ms
Shortest wait, in milliseconds. Default 250.
Max ms
Longest wait, in milliseconds. Default 2000.

The wait is at most 10 minutes, and stops early if the flow is stopped. Like Delay, it holds up the rest of its branch while it waits.

Contributors

Thank you to everyone who has helped improve this documentation.