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

Class XORWOW

  • All Implemented Interfaces:
    java.io.Serializable


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double nextDouble() 
      long nextLong() 
      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, nextFloat, nextGaussian, nextInt, nextInt
      • Methods inherited from class java.lang.Object

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

      • setSeed

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

        public long nextLong()
        Overrides:
        nextLong in class java.util.Random
      • nextDouble

        public double nextDouble()
        Overrides:
        nextDouble in class java.util.Random

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.