Package fj
Class LcgRng
- java.lang.Object
-
- fj.Rng
-
- fj.LcgRng
-
public class LcgRng extends Rng
https://en.wikipedia.org/wiki/Linear_congruential_generator
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Long
seed
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSeed()
P2<Rng,java.lang.Integer>
nextInt()
P2<Rng,java.lang.Long>
nextLong()
(package private) static P2<java.lang.Long,java.lang.Long>
nextLong(long seed)
-
Methods inherited from class fj.Rng
nextNatural, range
-
-
-
-
Method Detail
-
getSeed
public final long getSeed()
-
nextLong
static P2<java.lang.Long,java.lang.Long> nextLong(long seed)
- Parameters:
seed
-- Returns:
- Product of Seed and value
-
-