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