Class InstantRangeRandomizer
-
- All Implemented Interfaces:
-
io.github.krandom.api.Randomizer
public class InstantRangeRandomizer extends AbstractRangeRandomizer<T>
-
-
Constructor Summary
Constructors Constructor Description InstantRangeRandomizer(Instant min, Instant max)
Create a new InstantRangeRandomizer. InstantRangeRandomizer(Instant min, Instant max, long seed)
Create a new InstantRangeRandomizer.
-
Method Summary
Modifier and Type Method Description Instant
getRandomValue()
Generate a random value for the given type. -
-
Constructor Detail
-
InstantRangeRandomizer
InstantRangeRandomizer(Instant min, Instant max)
Create a new InstantRangeRandomizer.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)
-
InstantRangeRandomizer
InstantRangeRandomizer(Instant min, Instant max, long seed)
Create a new InstantRangeRandomizer.- Parameters:
min
- min value (inclusive)max
- max value (exclusive)seed
- initial seed
-
-
Method Detail
-
getRandomValue
Instant getRandomValue()
Generate a random value for the given type.
- Returns:
a random value for the given type
-
-
-
-