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
-
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:
nextInt
in interfaceorg.apache.commons.math3.random.RandomData
- Overrides:
nextInt
in 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:
nextLong
in interfaceorg.apache.commons.math3.random.RandomData
- Overrides:
nextLong
in classorg.apache.commons.math3.random.RandomDataGenerator
- Throws:
org.apache.commons.math3.exception.NumberIsTooLargeException
-
-