public static randInt(min as UInt, max as UInt) as UInt:
Returns a random unsigned integer in [min, max].
| Parameter | Description |
|---|---|
min | Lower bound. |
max | Upper bound. |
A random unsigned integer between min and max (inclusive).
value = Random.randInt(1u, 100u) print(value)