jsat.utils.random
Class XOR96
- java.lang.Object
-
- java.util.Random
-
- jsat.utils.random.XOR96
-
- All Implemented Interfaces:
- java.io.Serializable
public class XOR96 extends java.util.RandomA fast PRNG that produces medium quality random numbers. It has a period of 296-1
See: G. Marsaglia. Xorshift RNGs. Journal of Statistical Software, 8, 14:1–9, 2003- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description XOR96()Creates a new PRNG with a random seedXOR96(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
-
XOR96
public XOR96()
Creates a new PRNG with a random seed
-
XOR96
public XOR96(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