RandomContext

Controls and provides seeds for distributions we sample data from during the running of a scenario.

Functions

Link copied to clipboard

Returns an RNG controlled by the RandomContext

Link copied to clipboard
fun nextLong(): Long

Returns a Long generated by the RandomContext

Link copied to clipboard
inline fun <T> withSeed(seed: Long, block: () -> T): T

Runs block with RandomContext set to specified seed.