public final class RandomUtils
extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
nextLongInclusive(long upperBound)
Generate a random long between 0 and the upper bound, both inclusive.
|
static long |
nextLongInclusive(long lowerBound,
long upperBound)
Generate a random long between the specified lower and upper bound, both inclusive.
|
public static long nextLongInclusive(long upperBound)
upperBound - the inclusive upper bound.public static long nextLongInclusive(long lowerBound,
long upperBound)
lowerBound - the inclusive lower bound.upperBound - the inclusive upper bound.