public final class Math
extends java.lang.Object
| Constructor and Description |
|---|
Math() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Random |
getRandom()
Returns the Random generated by MathUtil.
|
static int |
nextInt()
Returns a random integer value.
|
static int |
nextInt(int max)
Returns a random value in the range [0, max[.
|
static int |
nextInt(int min,
int max)
Returns a random value in the range [min, max[.
|
static int |
pow(int a,
int b) |
public static int nextInt(int min,
int max)
min - The lower bound. Inclusive.max - The upper bound. Exclusive.public static int nextInt(int max)
max - The upper bound. Exclusive.public static int nextInt()
public static java.util.Random getRandom()
Random;public static int pow(int a,
int b)