nextInt

fun Random.nextInt(progression: IntProgression): Int

Gets the next random Int from the random number generator in the specified progression. Generates an Int random value uniformly distributed in the specified progression.

Since

1.1.0

See also

Random.nextInt

Throws

IllegalArgumentException

if progression is empty.