Documentation of 'org.apache.commons.math3.random.JDKRandomGenerator' Java class
JDKRandomGenerator
org.apache.commons.math3.random

Class JDKRandomGenerator

    • Constructor Summary

      Constructors 
      Constructor and Description
      JDKRandomGenerator()
      Create a new JDKRandomGenerator with a default seed.
      JDKRandomGenerator(int seed)
      Create a new JDKRandomGenerator with the given seed.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void setSeed(int seed)
      Sets the seed of the underlying random number generator using an int seed.
      void setSeed(int[] seed)
      Sets the seed of the underlying random number generator using an int array 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, setSeed
      • Methods inherited from class java.lang.Object

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

      • JDKRandomGenerator

        public JDKRandomGenerator()
        Create a new JDKRandomGenerator with a default seed.
      • JDKRandomGenerator

        public JDKRandomGenerator(int seed)
        Create a new JDKRandomGenerator with the given seed.
        Parameters:
        seed - initial seed
        Since:
        3.6
    • Method Detail

      • setSeed

        public void setSeed(int seed)
        Sets the seed of the underlying random number generator using an int seed.

        Sequences of values generated starting with the same seeds should be identical.

        Specified by:
        setSeed in interface RandomGenerator
        Parameters:
        seed - the seed value
      • setSeed

        public void setSeed(int[] seed)
        Sets the seed of the underlying random number generator using an int array seed.

        Sequences of values generated starting with the same seeds should be identical.

        Specified by:
        setSeed in interface RandomGenerator
        Parameters:
        seed - the seed value

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.