Use this when you want to generate a random whole number within a range within a flow, for example randomly assigning unit types from a set number of options.
Random numbers generated by computers are not truly random, but rather pseudo-random. They are produced by algorithms that, while appearing random, are deterministic and predictable. This means the same algorithm will generate the same sequence of numbers if given the same starting conditions.
In random number generation, a seed is a starting number used to initialize a random number generator (RNG). It's essentially a point within a predetermined sequence of "random" numbers where the generator starts producing values.
Inputs
Name | Abbreviation | Type | Access | Description |
Min | M | Number | Item | The minimum value (optional, default 0) |
Max | M | Number | Item | The maximum value (optional, default 1) |
Seed | S | Number | Item | The seed for the random number (optional). If left blank, the node uses a seed based on the ID of the geometry the flow runs on. |
Outputs
Name | Abbreviation | Type | Access | Description |
Value | V | Number | Item | The random integer |
