public final class MathUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Random |
RANDOM
An easy to access
Random implementation for random number
generation. |
| Constructor and Description |
|---|
MathUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
generateRandomInteger(int minimum,
int maximum)
Generates a random
Integer. |
static int |
getMaxOrMin(int value,
int max,
int min)
Checks if a specific
Integer is in the given range. |
public static final Random RANDOM
Random implementation for random number
generation. This specific field is mostly used by the random
methods of the ParticleData types.public static int generateRandomInteger(int minimum,
int maximum)
Integer.public static int getMaxOrMin(int value,
int max,
int min)
Integer is in the given range.
If not the respective bound of the range is returned.value - the value which should be checked.max - the maximum value.min - the minimum valueCopyright © 2021. All rights reserved.