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