Class RandomGenerators
java.lang.Object
com.zetaplugins.cookieclickerz.util.RandomGenerators
-
Method Summary
Modifier and TypeMethodDescriptionstatic BigIntegergenerateRandomBigInteger(BigInteger min, BigInteger max) Generates a random BigInteger between min and max (inclusive)static longgenerateRandomLong(long min, long max) Generates a random long between min and max (inclusive)static intgenerateRandomNumber(int min, int max) Generates a random number between min and max (inclusive)static StringgenerateRandomWord(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
-