BotFrame

Data · Workflow node

Random number

The Random number node as it appears in the workflow editor.

What it does

Choose a whole number inside a range.

Minimum cannot be greater than Maximum. The node chooses one whole number inside the range and makes it available through Number.

Typical use

Generate a whole number between configured inclusive bounds for a roll or selection.

How to use it

  1. Add it from DataOpen the node library and choose Random number from Data.
  2. Connect the workflow pathConnect Flow in from the previous step and Flow to the next step.
  3. Choose settings and connect valuesSet Maximum, Minimum. Connections can also supply values produced by earlier nodes.

Settings

These are the options shown when you add this node. A connected value can replace a setting when the workflow runs.

SettingStarting valueWhat it controls
Maximum100Used when Maximum is not connected from an earlier node.
Minimum1Used when Minimum is not connected from an earlier node.

Value connections

Value connections pass information between nodes without changing the order of the workflow. When an input is not connected, BotFrame uses the value selected in the node or details from the starting Discord event when available.

Inputs

MinimumNumber
Required
MaximumNumber
Required

Outputs

NumberNumber
Optional

What happens when it runs

Minimum cannot be greater than Maximum. The node chooses one whole number inside the range and makes it available through Number.

You can use this item in a published BotFrame workflow. You can also test it in the simulator.

These details match the node currently available in the BotFrame workflow editor.