public class LcgRng
extends Rng
https://en.wikipedia.org/wiki/Linear_congruential_generator
-
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Details
-
-
LcgRng
public LcgRng(long s)
-
Method Details
-
getSeed
public final long getSeed()
-
-
-
nextLong
- Parameters:
seed
-
- Returns:
- Product of Seed and value