RandomGenerators

Utilities that extend the functionality of RandomGenerator.

Functions

Link copied to clipboard
fun RandomGenerator.nextDouble(from: Double, to: Double): Double

Generate a random double between the given bounds.

Link copied to clipboard
fun RandomGenerator.randomAngle(): Double

Generates a random value in 0..2π.