Class DoubleRangeRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<T>
org.jeasy.random.randomizers.range.AbstractRangeRandomizer<Double>
org.jeasy.random.randomizers.range.DoubleRangeRandomizer
- All Implemented Interfaces:
Randomizer<Double>
Generate a random
Double
in the given range.- Author:
- Mahmoud Ben Hassine ([email protected])
-
Field Summary
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleRangeRandomizer
(Double min, Double max) Create a newDoubleRangeRandomizer
.DoubleRangeRandomizer
(Double min, Double max, long seed) Create a newDoubleRangeRandomizer
. -
Method Summary
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
DoubleRangeRandomizer
Create a newDoubleRangeRandomizer
.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)
-
DoubleRangeRandomizer
Create a newDoubleRangeRandomizer
.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)seed
- initial seed
-
-
Method Details
-
checkValues
protected void checkValues()- Specified by:
checkValues
in classAbstractRangeRandomizer<Double>
-
getDefaultMinValue
- Specified by:
getDefaultMinValue
in classAbstractRangeRandomizer<Double>
-
getDefaultMaxValue
- Specified by:
getDefaultMaxValue
in classAbstractRangeRandomizer<Double>
-
getRandomValue
Description copied from interface:Randomizer
Generate a random value for the given type.- Returns:
- a random value for the given type
-