public class IntRange
extends Object
An integer range, inclusive on both ends. Used to choose a random
duration of memory.
-
Field Summary
Fields
| Modifier and Type |
Field |
Description |
private int |
max |
|
private int |
min |
|
-
Constructor Summary
Constructors
| Constructor |
Description |
IntRange(int min,
int max) |
|
-
Method Summary
-
Field Details
-
min
private final int min
-
max
private final int max
-
Constructor Details
-
IntRange
public IntRange(int min,
int max)
-
Method Details
-
between
public static IntRange between(
int min,
int max)
-
choose
public int choose(
Random random)
-
getMin
public int getMin()
-
getMax
public int getMax()
-