Flow reference: Logic

Random

Pick a random branch or number.

Pick a random branch or number.

When and how to use it

Connect the input from the preceding step on the path that should perform this operation.
Fill the fields with data available in the trigger's context.
Connect the needed outputs; an unconnected path cannot run later blocks.

Configuration fields

Chance for A (%) — chance


Configure the chance using the unit shown by the editor. Test several runs rather than expecting a fixed outcome from one run.

Input: Number.

Default: 50.

Outputs and next steps

a: Random branch A was selected.
b: Random branch B was selected.

Test and troubleshoot

Invoke the correct trigger with simple inputs and verify the expected effect. Confirm variables exist on this path. A preview alone does not verify Discord delivery.

Save, validate and publish. Perform one real test and read the first relevant log error. [Testing](/docs/flow-testing) · [Variables](/docs/flow-variables) · [Permissions](/docs/flow-permissions).