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