Definition and Usage
Generate a random number that falls between a minimum and maximum value. This command allows you to create random integer values within a specified range, which can be useful for simulations, testing scenarios, or any process that requires randomization.
Parameter Values
Input parameters
Parameter | Description | Possible Values | Required | Options / Notes |
Minimum number | The lower boundary for the random number to generate | Integer value | Yes | The minimum value is inclusive |
Maximum number | The upper boundary for the random number to generate | Integer value | Yes | The maximum value is inclusive |
Store result into | Store the random number into a new variable | Variable name | Yes | The variable will contain the generated random integer |
Error handling
Parameter Name | Description |
Throw error & stop | When an error occurs, the action will trigger an error and stop the execution of the entire app. |
Retry command | If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process. |
Ignore error & continue | When an error occurs, the action will be ignored, and the workflow will continue without interruption. |
Variables produced
This action produces a variable containing the generated random number. The variable will store an integer value that falls between the specified minimum and maximum values (inclusive).
Using Variables in Conditions
You can use variables in both the minimum and maximum number fields by clicking the {x} icon. This allows you to dynamically set the range based on previously defined variables. For example, you might use variables that were calculated earlier in your workflow to determine the boundaries for random number generation.
Notes
Both the minimum and maximum values are inclusive in the random number generation.
If the minimum value is greater than the maximum value, the command will generate an error.
The generated random number will always be an integer.
This command is useful for simulations, testing with random data, or creating randomized workflows.