Skip to content

Suiteopensavvy.prepared.suite.randomRandom

Random


class Random

Random control helper. See random.

Functions

accessUnsafe


suspend fun accessUnsafe(): Random

Gives uncontrolled access to the underlying Random.

nextBits


suspend fun Random.nextBits(bitCount: Int): Int

Generates random bits.

nextBoolean


suspend fun Random.nextBoolean(): Boolean

Generates a random boolean.

nextDouble


suspend fun Random.nextDouble(): Double

Generates a random double.


suspend fun Random.nextDouble(from: Double, until: Double): Double

Generates a random double.

nextFloat