Class RandomDataGenerator

  • All Implemented Interfaces:
    Serializable, org.apache.commons.math3.random.RandomData

    public class RandomDataGenerator
    extends org.apache.commons.math3.random.RandomDataGenerator
    Since:
    1.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RandomDataGenerator​(org.apache.commons.math3.random.RandomGenerator rand)  
    • Method Summary

      Modifier and Type Method Description
      int nextInt​(int lower, int upper)  
      long nextLong​(long lower, long upper)  
      • Methods inherited from class org.apache.commons.math3.random.RandomDataGenerator

        getRandomGenerator, nextBeta, nextBinomial, nextCauchy, nextChiSquare, nextExponential, nextF, nextGamma, nextGaussian, nextHexString, nextHypergeometric, nextPascal, nextPermutation, nextPoisson, nextSample, nextSecureHexString, nextSecureInt, nextSecureLong, nextT, nextUniform, nextUniform, nextWeibull, nextZipf, reSeed, reSeed, reSeedSecure, reSeedSecure, setSecureAlgorithm
    • Constructor Detail

      • RandomDataGenerator

        public RandomDataGenerator​(org.apache.commons.math3.random.RandomGenerator rand)
    • Method Detail

      • nextInt

        public int nextInt​(int lower,
                           int upper)
                    throws org.apache.commons.math3.exception.NumberIsTooLargeException
        Specified by:
        nextInt in interface org.apache.commons.math3.random.RandomData
        Overrides:
        nextInt in class org.apache.commons.math3.random.RandomDataGenerator
        Throws:
        org.apache.commons.math3.exception.NumberIsTooLargeException
      • nextLong

        public long nextLong​(long lower,
                             long upper)
                      throws org.apache.commons.math3.exception.NumberIsTooLargeException
        Specified by:
        nextLong in interface org.apache.commons.math3.random.RandomData
        Overrides:
        nextLong in class org.apache.commons.math3.random.RandomDataGenerator
        Throws:
        org.apache.commons.math3.exception.NumberIsTooLargeException