|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fasteasytrade.JRandTest.Algo.Cipher com.fasteasytrade.JRandTest.Algo.Lcg1Prng
Simple LCG from NIST test package
Seed to LCG is double
Each cycle returns new double.
Field Summary | |
(package private) double |
DA1
DA1 = 950706376 mod 2**16 |
(package private) double |
DA2
DA2 = 950706376 - DA1 |
(package private) double |
DTWO31
DTWO31 = 2 ** 31 |
(package private) double |
DTWO31M1
DTWO31M1 = 2 ** 31 - 1 |
(package private) double |
seed
seed contains the "state" of the LCG |
Constructor Summary | |
(package private) |
Lcg1Prng()
|
(package private) |
Lcg1Prng(double seed)
|
Method Summary | |
double |
nextDouble()
|
Methods inherited from class com.fasteasytrade.JRandTest.Algo.Cipher |
compareBytes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
double seed
final double DTWO31
final double DTWO31M1
final double DA1
final double DA2
Constructor Detail |
Lcg1Prng()
Lcg1Prng(double seed)
Method Detail |
public double nextDouble()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |