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