randInt

fun randInt(min: Int, max: Int): Int

Returns a pseudo-random number between min and max, inclusive. The difference between min and max can be at most Integer.MAX_VALUE - 1.

Return

Integer between min and max, inclusive.

Parameters

min

Minimum value

max

Maximum value. Must be greater than min.

See also