Class BooleanRandomizer

java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<Boolean>
org.jeasy.random.randomizers.misc.BooleanRandomizer
All Implemented Interfaces:
Randomizer<Boolean>

public class BooleanRandomizer extends AbstractRandomizer<Boolean>
Generate a random Boolean.
Author:
Mahmoud Ben Hassine ([email protected])
  • Constructor Details

    • BooleanRandomizer

      public BooleanRandomizer()
      Create a new BooleanRandomizer.
    • BooleanRandomizer

      public BooleanRandomizer(long seed)
      Create a new BooleanRandomizer.
      Parameters:
      seed - initial seed
  • Method Details

    • getRandomValue

      public Boolean getRandomValue()
      Description copied from interface: Randomizer
      Generate a random value for the given type.
      Returns:
      a random value for the given type