Class RandomGenerators
java.lang.Object
org.strassburger.cookieclickerz.util.RandomGenerators
-
Method Summary
Modifier and TypeMethodDescriptionstatic BigInteger
generateRandomBigInteger
(BigInteger min, BigInteger max) Generates a random BigInteger between min and max (inclusive)static long
generateRandomLong
(long min, long max) Generates a random long between min and max (inclusive)static int
generateRandomNumber
(int min, int max) Generates a random number between min and max (inclusive)static String
generateRandomWord
(int wordLength) Generates a random word with the given length
-
Method Details
-
generateRandomWord
Generates a random word with the given length- Parameters:
wordLength
- The length of the word- Returns:
- The random word
-
generateRandomNumber
public static int generateRandomNumber(int min, int max) Generates a random number between min and max (inclusive)- Parameters:
min
- The minimum number (inclusive)max
- The maximum number (inclusive)- Returns:
- The random number
-
generateRandomLong
public static long generateRandomLong(long min, long max) Generates a random long between min and max (inclusive)- Parameters:
min
- The minimum number (inclusive)max
- The maximum number (inclusive)- Returns:
- The random long
-
generateRandomBigInteger
Generates a random BigInteger between min and max (inclusive)- Parameters:
min
- The minimum number (inclusive)max
- The maximum number (inclusive)- Returns:
- The random BigInteger
-