Class ByteRangeRandomizer

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Byte getRandomValue() Generate a random value for the given type.
      • Methods inherited from class io.github.krandom.randomizers.AbstractRandomizer

        toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteRangeRandomizer

        ByteRangeRandomizer(Byte min, Byte max)
        Create a new ByteRangeRandomizer.
        Parameters:
        min - min value (inclusive)
        max - max value (exclusive)
      • ByteRangeRandomizer

        ByteRangeRandomizer(Byte min, Byte max, long seed)
        Create a new ByteRangeRandomizer.
        Parameters:
        min - min value (inclusive)
        max - max value (exclusive)
        seed - initial seed
    • Method Detail

      • getRandomValue

         Byte getRandomValue()

        Generate a random value for the given type.

        Returns:

        a random value for the given type