jsat.utils.random
Class XORWOW
- java.lang.Object
-
- java.util.Random
-
- jsat.utils.random.XORWOW
-
- All Implemented Interfaces:
- java.io.Serializable
public class XORWOW extends java.util.RandomA very fast PRNG that passes the Diehard tests. It has a period of 2192−232
See: G. Marsaglia. Xorshift RNGs. Journal of Statistical Software, 8, 14:1–9, 2003- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description XORWOW()Creates a new PRNG with a random seedXORWOW(long seed)Creates a new PRNG
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublenextDouble()longnextLong()voidsetSeed(long seed)
-
-
-
Constructor Detail
-
XORWOW
public XORWOW()
Creates a new PRNG with a random seed
-
XORWOW
public XORWOW(long seed)
Creates a new PRNG- Parameters:
seed- the seed that controls the initial state of the PRNG- See Also:
setSeed(long)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG