nextULong
Platform and version requirements: JVM (1.5), JS (1.5), Native (1.5)
fun Random.nextULong(): ULong
Platform and version requirements: JVM (1.5), JS (1.5), Native (1.5)
fun Random.nextULong(until: ULong): ULong
Gets the next random ULong from the random number generator less than the specified until bound.
Generates a ULong random value uniformly distributed between 0 (inclusive) and the specified until bound (exclusive).
Exceptions
IllegalArgumentException - if until is zero.
Platform and version requirements: JVM (1.5), JS (1.5), Native (1.5)
fun Random.nextULong(from: ULong, until: ULong): ULong
Gets the next random ULong from the random number generator in the specified range.
Generates a ULong random value uniformly distributed between the specified from (inclusive) and until (exclusive) bounds.
Exceptions
IllegalArgumentException - if from is greater than or equal to until.
Platform and version requirements: JVM (1.5), JS (1.5), Native (1.5)
fun Random.nextULong(range: ULongRange): ULong
Gets the next random ULong from the random number generator in the specified range.
Generates a ULong random value uniformly distributed in the specified range: from range.start inclusive to range.endInclusive inclusive.
Exceptions
IllegalArgumentException - if range is empty.