Documentation of 'jsat.utils.random.CMWC4096' Java class
CMWC4096
jsat.utils.random

Class CMWC4096

  • All Implemented Interfaces:
    java.io.Serializable


    public class CMWC4096
    extends java.util.Random
    A 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 seed
      CMWC4096(long seed)
      Creates a new PRNG
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void setSeed(long seed) 
      • Methods inherited from class java.util.Random

        doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)
    • Method Detail

      • setSeed

        public void setSeed(long seed)
        Overrides:
        setSeed in class java.util.Random

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.