Class DoubleRangeRandomizer
-
- All Implemented Interfaces:
-
io.github.krandom.api.Randomizer
public class DoubleRangeRandomizer extends AbstractRangeRandomizer<T>
Generate a random Double in the given range.
Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Constructor Description DoubleRangeRandomizer(Double min, Double max)
Create a new DoubleRangeRandomizer. DoubleRangeRandomizer(Double min, Double max, long seed)
Create a new DoubleRangeRandomizer.
-
Method Summary
Modifier and Type Method Description Double
getRandomValue()
Generate a random value for the given type. -
-
Constructor Detail
-
DoubleRangeRandomizer
DoubleRangeRandomizer(Double min, Double max)
Create a new DoubleRangeRandomizer.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)
-
DoubleRangeRandomizer
DoubleRangeRandomizer(Double min, Double max, long seed)
Create a new DoubleRangeRandomizer.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)seed
- initial seed
-
-
Method Detail
-
getRandomValue
Double getRandomValue()
Generate a random value for the given type.
- Returns:
a random value for the given type
-
-
-
-