klyn.math.Random.randInt
method
public static native randInt(min as Int, max as Int) as Int
Description

Returns a random integer in [min, max].

Parameters
  • min Lower bound.
  • max Upper bound.
Returns

A random integer between min and max (inclusive).

Example
value = Random.randInt(1, 6)
print(value)