changeRandomGen

Change the random generator function. Defaults to kotlin.random.Random.nextFloat.

Caveat: Should behave like kotlin.random.Random.nextFloat returning a value uniformly distributed between 0 (inclusive) and 1 (exclusive)

See also

kotlin.random.Random.nextFloat
Link copied to clipboard

Parameters

f

Random generator function

fun changeRandomGen(f: (Unit) -> Float)