Class LocaleRandomizer
-
- All Implemented Interfaces:
-
io.github.krandom.api.Randomizer
public class LocaleRandomizer extends AbstractRandomizer<T>
Generate a random Locale.
Pascal Schumacher (https://github.com/PascalSchumacher)
-
-
Constructor Summary
Constructors Constructor Description LocaleRandomizer()
Create a new LocaleRandomizer. LocaleRandomizer(long seed)
Create a new LocaleRandomizer.
-
Method Summary
Modifier and Type Method Description Locale
getRandomValue()
Generate a random value for the given type. -
-
Constructor Detail
-
LocaleRandomizer
LocaleRandomizer()
Create a new LocaleRandomizer.
-
LocaleRandomizer
LocaleRandomizer(long seed)
Create a new LocaleRandomizer.- Parameters:
seed
- initial seed
-
-
Method Detail
-
getRandomValue
Locale getRandomValue()
Generate a random value for the given type.
- Returns:
a random value for the given type
-
-
-
-