nextUInt

Gets the next random UInt from the random number generator.

Generates a UInt random value uniformly distributed between UInt.MIN_VALUE and UInt.MAX_VALUE (inclusive).

Since Kotlin

1.5

Gets the next random UInt from the random number generator less than the specified until bound.

Generates a UInt random value uniformly distributed between 0 (inclusive) and the specified until bound (exclusive).

Since Kotlin

1.5

Throws


fun Random.nextUInt(from: UInt, until: UInt): UInt(source)

Gets the next random UInt from the random number generator in the specified range.

Generates a UInt random value uniformly distributed between the specified from (inclusive) and until (exclusive) bounds.

Since Kotlin

1.5

Throws

if from is greater than or equal to until.


Gets the next random UInt from the random number generator in the specified range.

Generates a UInt random value uniformly distributed in the specified range: from range.start inclusive to range.endInclusive inclusive.

Since Kotlin

1.5

Throws