Random Number
Generates a random floating-point number within a specified range.
This node generates a pseudo-random floating-point number.
Seed Behavior#
The seed input controls the sequence of random numbers:
- -1: A unique seed is used for each execution, resulting in a different number every time the node runs.
- Other value: Using a fixed seed (e.g., 0, 42, 123) ensures the node produces the same random number on every execution. This is useful for creating reproducible and predictable results.
Range#
The output number will be greater than or equal to min and less than max.
[min, max)
Inputs#
| Port | Description |
|---|---|
| The lower bound (inclusive) of the random range. | |
| The upper bound (exclusive) of the random range. | |
| Controls the random sequence. Use -1 for a different number on each run. |
Outputs#
| Port | Description |
|---|---|
| The generated random number. |
ID: core/random-number@v1