jsat.utils.random
Class CMWC4096
- java.lang.Object
-
- java.util.Random
-
- jsat.utils.random.CMWC4096
-
- All Implemented Interfaces:
- java.io.Serializable
public class CMWC4096 extends java.util.RandomA Complement-Multiply-With-Carry PRNG. It is a fast high quality generator that passes the Diehard tests. It has a period of over 2131083
See: Marsaglia, G. (2005). On the randomness of Pi and other decimal expansions. Interstat 5- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description CMWC4096()Creates a new PRNG with a random seedCMWC4096(long seed)Creates a new PRNG
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidsetSeed(long seed)
-
-
-
Constructor Detail
-
CMWC4096
public CMWC4096()
Creates a new PRNG with a random seed
-
CMWC4096
public CMWC4096(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