public class Random
extends java.lang.Object
| Constructor and Description |
|---|
Random() |
| Modifier and Type | Method and Description |
|---|---|
static int |
randInt(int origin,
int bound)
Returns a pseudo-random number between origin and bound, inclusive.
|
public static int randInt(int origin,
int bound)
Integer.MAX_VALUE - 1.origin - Minimum value.bound - Maximum value. Must be greater than origin.Random.nextInt(int)