Class FloatRangeRandomizer

    • 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
      Float 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

      • FloatRangeRandomizer

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

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

      • getRandomValue

         Float getRandomValue()

        Generate a random value for the given type.

        Returns:

        a random value for the given type