This is a Scala implementation of the Well19937c PRNG based on WELL19937a.c.
The acronym WELL stands for Well Equidistributed Long-period Linear.
Reference: François Panneton, Pierre L'Ecuyer and Makoto Matsumoto: "Improved Long-Period Generators Based on Linear Recurrences Modulo 2", ACM Transactions on Mathematical Software, Vol. 32, No. 1, January 2006, pp 1--16.
- 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 array of n random Shorts.
Generate an array of n random Shorts.
- 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, n).
Generates a random float in [0.0, n).
- 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
Deprecated and Inherited methods
- Deprecated
[Since version 0.18.0]
- Inherited from:
- Generator