class Random
Default RNG using the Xoroshiro128plus algorithm. This is a robust RNG with 128 bits of state. Note that low bits have less entropy than higher bits: use sign test to derive random booleans (or randomBool()), and use right shifts (or random()) to derive smaller values (as opposed to modulo). Adapted from http://vigna.di.unimi.it/xorshift/xoroshiro128plus.c
Static Methods
static fun sourcemcreate(seed: Int): mutable this
Create an instance using a 64 bit seed. The seed is used to initialize a 64-bit RNG from which two state values are extracted.
Methods
mutable fun sourcerandom(start: Int, end: Int): Int
Returns a random number within the range from start (inclusive) to end (exclusive).