SplitMix64

class SplitMix64(seed: Long)(source)

SplitMix64 on Long arithmetic, so every target draws the same sequence for a seed.

Constructors

Link copied to clipboard
constructor(seed: Long)

Functions

Link copied to clipboard
fun below(bound: Int): Int

Uniform to within 2^-40 for the small bounds used here (modulo of 63 random bits).

Link copied to clipboard
fun next(): Long
Link copied to clipboard
fun <T> shuffled(items: List<T>): List<T>