Skip to main content

Random Number Generator Node

The Random Number Generator node generates random numbers within a specified range. This utility node is essential for creating dynamic, unpredictable elements in workflows such as quizzes, games, simulations, random selections, and statistical sampling. It provides a simple yet powerful way to introduce randomness and variability into your flows.

Random Number Generator node


Basic Usage​

Use the Random Number Generator node to generate random numbers for games, quizzes, selections, or any workflow requiring random numerical values.


Inputs​

The Random Number Generator node does not accept inputs from other nodes. All configuration is done through its internal settings.


Outputs​

  • Output: A randomly generated number within the specified minimum and maximum range (inclusive).

Configuration​

Minimum Value​

Input Field: Enter the lower bound (minimum value) for the random number generation.

  • Must be a numerical value
  • Can be positive, negative, or zero
  • Should be less than or equal to the maximum value
  • The generated number will be greater than or equal to this value

Example Values:

  • 1 - Start from 1 (common for dice, selections)
  • 0 - Include zero in the range
  • -100 - Allow negative numbers

Maximum Value​

Input Field: Enter the upper bound (maximum value) for the random number generation.

  • Must be a numerical value
  • Can be positive, negative, or zero
  • Should be greater than or equal to the minimum value
  • The generated number will be less than or equal to this value

Example Values:

  • 6 - For simulating a standard die
  • 100 - For percentage-based randomization
  • 1000 - For larger ranges

Example Workflows​

Random Number Display​

Scenario: Generate a random number between a minimum and maximum value and display it to users.

Random Number Generator Example

Steps to Create the Flow:

  1. Start with the Start Node.

  2. Add and connect a Random Number Generator node:

    i. Configure Minimum Value:

    • Click the "Minimum value" input field
    • Enter your desired minimum value (e.g., 1, 0, 10)
    • Example: Enter 1 for a dice roll starting from 1

    ii. Configure Maximum Value:

    • Click the "Maximum value" input field
    • Enter your desired maximum value (e.g., 6, 100, 50)
    • Example: Enter 6 for a standard six-sided die
  3. Add a Display Text node:

    • Connect the Random Number Generator's Output to the Display Text's Input
    • This will show the randomly generated number to the user

Preview:

Configuration:

  • Minimum value: 1
  • Maximum value: 6

Possible Outputs:

  • First execution: 4
  • Second execution: 2
  • Third execution: 6
  • Fourth execution: 1

Each time the flow executes, a different random number between 1 and 6 is generated.

Result: Users see a randomly generated number within the specified range each time the flow runs, perfect for dice rolls, random selections, or unpredictable game mechanics.


  • Branching Node: Route based on random number value ranges
  • Display Text: Show the generated random number to users
  • Data Dump: Store random numbers for later use or analysis
  • Text Join: Combine random number with other text
  • API Call: Send random numbers to external systems
  • Form Node: Combine with user input for hybrid randomization
  • Scenario Branch: Create different paths based on random values
  • Progress Checkpoint: Use random numbers for milestone tracking