Class UniformJavaUtilRandomWrapper
- java.lang.Object
-
- org.spectrumauctions.sats.core.util.random.UniformJavaUtilRandomWrapper
-
- All Implemented Interfaces:
java.io.Serializable,UniformDistributionRNG
public class UniformJavaUtilRandomWrapper extends java.lang.Object implements UniformDistributionRNG
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UniformJavaUtilRandomWrapper()UniformJavaUtilRandomWrapper(long seed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimalnextBigDecimal()java.math.BigDecimalnextBigDecimal(double lowerLimit, double upperLimit)java.math.BigDecimalnextBigDecimal(DoubleInterval interval)doublenextDouble()doublenextDouble(double lowerLimit, double upperLimit)doublenextDouble(DoubleInterval interval)intnextInt()intnextInt(int upperLimit)Returns a random integer between 0 and upperLimit (exclusive)intnextInt(int lowerLimit, int upperLimit)intnextInt(IntegerInterval interval)longnextLong()
-
-
-
Method Detail
-
nextInt
public int nextInt()
- Specified by:
nextIntin interfaceUniformDistributionRNG
-
nextInt
public int nextInt(int lowerLimit, int upperLimit)- Specified by:
nextIntin interfaceUniformDistributionRNG
-
nextInt
public int nextInt(IntegerInterval interval)
- Specified by:
nextIntin interfaceUniformDistributionRNG
-
nextDouble
public double nextDouble()
- Specified by:
nextDoublein interfaceUniformDistributionRNG
-
nextDouble
public double nextDouble(double lowerLimit, double upperLimit)- Specified by:
nextDoublein interfaceUniformDistributionRNG
-
nextLong
public long nextLong()
- Specified by:
nextLongin interfaceUniformDistributionRNG
-
nextDouble
public double nextDouble(DoubleInterval interval)
- Specified by:
nextDoublein interfaceUniformDistributionRNG
-
nextBigDecimal
public java.math.BigDecimal nextBigDecimal()
- Specified by:
nextBigDecimalin interfaceUniformDistributionRNG
-
nextBigDecimal
public java.math.BigDecimal nextBigDecimal(double lowerLimit, double upperLimit)- Specified by:
nextBigDecimalin interfaceUniformDistributionRNG
-
nextBigDecimal
public java.math.BigDecimal nextBigDecimal(DoubleInterval interval)
- Specified by:
nextBigDecimalin interfaceUniformDistributionRNG
-
nextInt
public int nextInt(int upperLimit)
Description copied from interface:UniformDistributionRNGReturns a random integer between 0 and upperLimit (exclusive)- Specified by:
nextIntin interfaceUniformDistributionRNG
-
-