Class LocalTimeRandomizer
java.lang.Object
io.github.krandom.randomizers.time.LocalTimeRandomizer
- All Implemented Interfaces:
Randomizer<LocalTime>
A
Randomizer
that generates random LocalTime
.-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newLocalTimeRandomizer
.LocalTimeRandomizer
(long seed) Create a newLocalTimeRandomizer
. -
Method Summary
Modifier and TypeMethodDescriptionGenerate a random value for the given type.
-
Constructor Details
-
LocalTimeRandomizer
public LocalTimeRandomizer()Create a newLocalTimeRandomizer
. -
LocalTimeRandomizer
public LocalTimeRandomizer(long seed) Create a newLocalTimeRandomizer
.- Parameters:
seed
- initial seed
-
-
Method Details
-
getRandomValue
Description copied from interface:Randomizer
Generate a random value for the given type.- Specified by:
getRandomValue
in interfaceRandomizer<LocalTime>
- Returns:
- a random value for the given type
-