Class ByteRandomizer

java.lang.Object
org.jeasy.random.randomizers.number.ByteRandomizer
All Implemented Interfaces:
Randomizer<Byte>

public class ByteRandomizer extends Object implements Randomizer<Byte>
Generate a random Byte.
Author:
Mahmoud Ben Hassine ([email protected])
  • Constructor Details

    • ByteRandomizer

      public ByteRandomizer()
      Create a new ByteRandomizer.
    • ByteRandomizer

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

    • getRandomValue

      public Byte getRandomValue()
      Description copied from interface: Randomizer
      Generate a random value for the given type.
      Specified by:
      getRandomValue in interface Randomizer<Byte>
      Returns:
      a random value for the given type