Package cc.redberry.rings.util
Class RandomDataGenerator
- java.lang.Object
-
- org.apache.commons.math3.random.RandomDataGenerator
-
- cc.redberry.rings.util.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intnextInt(int lower, int upper)longnextLong(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
-
-
-
-
Method Detail
-
nextInt
public int nextInt(int lower, int upper) throws org.apache.commons.math3.exception.NumberIsTooLargeException- Specified by:
nextIntin interfaceorg.apache.commons.math3.random.RandomData- Overrides:
nextIntin classorg.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:
nextLongin interfaceorg.apache.commons.math3.random.RandomData- Overrides:
nextLongin classorg.apache.commons.math3.random.RandomDataGenerator- Throws:
org.apache.commons.math3.exception.NumberIsTooLargeException
-
-