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
ParameterDescription
minLower bound.
maxUpper bound.
Returns

A random integer between min and max (inclusive).

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