Package kotlin. random
Provides the default generator of pseudo-random values, the repeatable generator, and a base class for other RNG implementations.
Provides the default generator of pseudo-random values, the repeatable generator, and a base class for other RNG implementations.
Types
Functions
Creates a java.util.Random instance that uses the specified Kotlin Random generator as a randomness source.
Since Kotlin
Creates a Kotlin Random instance that uses the specified java.util.Random generator as a randomness source.
Since Kotlin
Creates an unsigned byte array of the specified size, filled with random bytes.
Since Kotlin
Fills the specified unsigned byte array with random bytes and returns it.
Since Kotlin
Fills a subrange of the specified UByte
array starting from fromIndex inclusive and ending toIndex exclusive with random UBytes.