public class MathUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Random |
RANDOM
A 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 value is between
two other values.
|
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)
value - the value which should be checked.max - the maximum value.min - the minimum valueCopyright © 2020. All rights reserved.