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