Package net.storm.api.commons
Class IntRandomNumberGenerator
java.lang.Object
net.storm.api.commons.IntRandomNumberGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionIntRandomNumberGenerator(int min, int max) Initialize a new random number generator that generates random numbers in the range [min, max] -
Method Summary
-
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)
-