package random
- Alphabetic
- By Inheritance
- random
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait RNG extends AnyRef
- type Rand[A] = (RNG) => (RNG, A)
RNG state transition function.
- case class Rand48(modulus: Long, multiplier: Long, increment: Long, seed: Long) extends RNG with Product with Serializable
A linear congruential generator which generates 32-bit values from 64-bit iterations, extracting bits 47..16 from each iteration.
- case class Xoshiro256ss(x: Long, y: Long, z: Long, w: Long) extends RNG with Product with Serializable
Xoshiro256** pseudo-random number generator for 64-bit values.
Xoshiro256** pseudo-random number generator for 64-bit values. Mnemonic for the PRNG algorithm name is "xor/shift/rotate with 256-bits state". See here for definition.
This generator includes functions to significantly advance the current state (i.e. "jump") such that a LazyList of non-overlapping generators may be created to support sharding across multiple work streams without any individual work stream impacting the results produced by another.
- x
State value #0.
- y
State value #1.
- z
State value #2.
- w
State value #3.
Value Members
- object Definitions
- object Rand
RNG state transition functions.
- object Rand48 extends Serializable
- object Xoshiro256ss extends Serializable