Overview
>
klyn.math
>
Random
>
randInt
Overview
Index
Tree
Deprecated
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]. value = Random.randInt(1, 6) print(value)
Parameters
min Lower bound.
max Upper bound.
Returns
A random integer between `min` and `max` (inclusive).
Example