Class ByteRandomizer
java.lang.Object
org.jeasy.random.randomizers.number.ByteRandomizer
- All Implemented Interfaces:
Randomizer<Byte>
Generate a random
Byte
.- Author:
- Mahmoud Ben Hassine ([email protected])
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newByteRandomizer
.ByteRandomizer
(long seed) Create a newByteRandomizer
. -
Method Summary
Modifier and TypeMethodDescriptionGenerate a random value for the given type.
-
Constructor Details
-
ByteRandomizer
public ByteRandomizer()Create a newByteRandomizer
. -
ByteRandomizer
public ByteRandomizer(long seed) Create a newByteRandomizer
.- Parameters:
seed
- initial seed
-
-
Method Details
-
getRandomValue
Description copied from interface:Randomizer
Generate a random value for the given type.- Specified by:
getRandomValue
in interfaceRandomizer<Byte>
- Returns:
- a random value for the given type
-