klyn.math.Random.randInt
method
public static randInt(min as UInt, max as UInt) as UInt:
Description
Returns a random unsigned integer in [min, max]. value = Random.randInt(1u, 100u) print(value)
Parameters
  • min Lower bound.
  • max Upper bound.
Returns
A random unsigned integer between `min` and `max` (inclusive).
Example