Class IntRandomNumberGenerator

java.lang.Object
net.storm.api.commons.IntRandomNumberGenerator

public final class IntRandomNumberGenerator extends Object
  • Constructor Details

    • IntRandomNumberGenerator

      public IntRandomNumberGenerator(int min, int max)
      Initialize a new random number generator that generates random numbers in the range [min, max]
      Parameters:
      min - - the min value (inclusive)
      max - - the max value (inclusive)
  • Method Details

    • nextInt

      public int nextInt()
      Returns a random number in the range (min, max)
      Returns:
      a random number in the range (min, max)