Class BooleanRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<Boolean>
org.jeasy.random.randomizers.misc.BooleanRandomizer
- All Implemented Interfaces:
Randomizer<Boolean>
Generate a random
Boolean.- Author:
- Mahmoud Ben Hassine ([email protected])
-
Field Summary
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random -
Constructor Summary
ConstructorsConstructorDescriptionCreate a newBooleanRandomizer.BooleanRandomizer(long seed) Create a newBooleanRandomizer. -
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
-
BooleanRandomizer
public BooleanRandomizer()Create a newBooleanRandomizer. -
BooleanRandomizer
public BooleanRandomizer(long seed) Create a newBooleanRandomizer.- Parameters:
seed- initial seed
-
-
Method Details
-
getRandomValue
Description copied from interface:RandomizerGenerate a random value for the given type.- Returns:
- a random value for the given type
-