Documentation of 'smile.math.random.MersenneTwister64' Java class
MersenneTwister64
smile.math.random

Class MersenneTwister64

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int next(int numbits)
      Returns up to 32 random bits.
      double nextDouble()
      Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.
      void nextDoubles(double[] d)
      Returns a vector of pseudorandom, uniformly distributed double values between 0.0 and 1.0 from this random number generator's sequence.
      int nextInt()
      Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.
      int nextInt(int n)
      Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
      long nextLong()
      Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence.
      void setSeed(long seed)
      Initialize the random generator with a seed.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MersenneTwister64

        public MersenneTwister64()
        Constructor.
      • MersenneTwister64

        public MersenneTwister64(long seed)
        Constructor.
        Parameters:
        seed -
    • Method Detail

      • nextDouble

        public double nextDouble()
        Description copied from interface: RandomNumberGenerator
        Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.
        Specified by:
        nextDouble in interface RandomNumberGenerator
      • nextDoubles

        public void nextDoubles(double[] d)
        Description copied from interface: RandomNumberGenerator
        Returns a vector of pseudorandom, uniformly distributed double values between 0.0 and 1.0 from this random number generator's sequence.
        Specified by:
        nextDoubles in interface RandomNumberGenerator
      • nextInt

        public int nextInt()
        Description copied from interface: RandomNumberGenerator
        Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.
        Specified by:
        nextInt in interface RandomNumberGenerator
      • nextInt

        public int nextInt(int n)
        Description copied from interface: RandomNumberGenerator
        Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
        Specified by:
        nextInt in interface RandomNumberGenerator
      • nextLong

        public long nextLong()
        Description copied from interface: RandomNumberGenerator
        Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence.
        Specified by:
        nextLong in interface RandomNumberGenerator

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.