Return a random integer in the inclusive min -> max range.
Syntax
random_int(min, max, /)Parameters
| Name | Description |
|---|---|
minInt | Lower bound of the range. Required · Positional only No default |
maxInt | Upper bound of the range. Required · Positional only No default |
Returns
Int — Random integer between min and max (inclusive).Example
delay_steps = random_int(1, 4)
wait(delay_steps * 100)