Class LongRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<Long>
org.jeasy.random.randomizers.number.LongRandomizer
- All Implemented Interfaces:
Randomizer<Long>
Generate a random
Long
.- Author:
- Mahmoud Ben Hassine ([email protected])
-
Field Summary
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newLongRandomizer
.LongRandomizer
(long seed) Create a newLongRandomizer
. -
Method Summary
Modifier and TypeMethodDescriptionGenerate a random value for the given type.Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
LongRandomizer
public LongRandomizer()Create a newLongRandomizer
. -
LongRandomizer
public LongRandomizer(long seed) Create a newLongRandomizer
.- Parameters:
seed
- initial seed
-
-
Method Details
-
getRandomValue
Description copied from interface:Randomizer
Generate a random value for the given type.- Returns:
- a random value for the given type
-