Skip to main content

Random

The Random data node generates a random number within a configurable range each time its value is requested by a downstream node. Because data nodes are lazily evaluated, a new random number is generated every time the flow runs and a connected node needs the value. Use this for adding randomness to your flow, such as random delays, random sound selection indices, or chance-based effects.

Outputs

NameTypeDescription
ValuenumberA random number between the configured minimum and maximum

Configuration

  • Minimum: The lowest possible value (inclusive).
  • Maximum: The highest possible value (inclusive).

Example

You want to add a random delay between 1 and 5 seconds before playing an alert sound. Connect a Random data node (min: 1, max: 5) to the Duration input of a Sleep node. Each time the flow runs, the delay will be a different random length, keeping your alerts feeling dynamic and unpredictable.