Class InstantRandomizer
-
- All Implemented Interfaces:
-
io.github.krandom.api.Randomizer
public class InstantRandomizer implements Randomizer<T>
A Randomizer that generates random Instant.
Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Constructor Description InstantRandomizer()
Create a new InstantRandomizer. InstantRandomizer(long seed)
Create a new InstantRandomizer.
-
Method Summary
Modifier and Type Method Description Instant
getRandomValue()
Generate a random value for the given type. -
-
Constructor Detail
-
InstantRandomizer
InstantRandomizer()
Create a new InstantRandomizer.
-
InstantRandomizer
InstantRandomizer(long seed)
Create a new InstantRandomizer.- Parameters:
seed
- initial seed
-
-
Method Detail
-
getRandomValue
Instant getRandomValue()
Generate a random value for the given type.
- Returns:
a random value for the given type
-
-
-
-