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