This is a 64-bit Scala implementation of MersenneTwister based on MT19937-64.c.
MersenneTwister is a fast, 623-dimensionally equidistributed pseudo random number generator with a 219937 - 1 long period.
Reference: Makoto Matsumoto and Takuji Nishimura: "Mersenne Twister: A 623-Dimensionally Equidistributed Uniform Pseudo-Random Number Generator", ACM Transactions on Modeling and Computer Simulation, Vol. 8, No. 1, January 1998, pp 3--30.
- See also
- Companion
- object
Value members
Concrete methods
Inherited methods
Fill an Array[A] using the given Dist[A] instance.
Fill an Array[A] using the given Dist[A] instance.
- Inherited from
- Generator
Generate an Array[A] using the given Dist[A] instance.
Generate an Array[A] using the given Dist[A] instance.
- Inherited from
- Generator
Generate an infinite iterator of random values using Dist[A].
Generate an infinite iterator of random values using Dist[A].
- Inherited from
- Generator
Generate a random value using a Dist[A] type class instance.
Generate a random value using a Dist[A] type class instance.
Implicit Dist[A] instances are provided for the AnyVal types as well as UByte through ULong. More complex Dist instances can be created from these.
- Inherited from
- Generator
Generates a random integer using n bits of state (0 <= n <= 32).
Generates a random integer using n bits of state (0 <= n <= 32).
- Inherited from
- Generator
Generates a random double in [from, until).
Generates a random double in [from, until).
- Inherited from
- Generator
Generates a random double in [0.0, n).
Generates a random double in [0.0, n).
- Inherited from
- Generator
Generates a random double in [0.0, 1.0).
Generates a random double in [0.0, 1.0).
- Inherited from
- Generator
Generates a random float in [from, until).
Generates a random float in [from, until).
- Inherited from
- Generator
Generates a random float in [0.0, 1.0).
Generates a random float in [0.0, 1.0).
- Inherited from
- Generator
Generates a random int between 0 (inclusive) and n (exclusive).
Generates a random int between 0 (inclusive) and n (exclusive).
- Inherited from
- Generator
Generates a random int between 0 (inclusive) and n (exclusive).
Generates a random int between 0 (inclusive) and n (exclusive).
- Inherited from
- Generator
- Inherited from
- Generator
- Inherited from
- Generator