|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.derquinse.common.test.RandomSupport
public final class RandomSupport
Randomness support class for tests.
| Method Summary | |
|---|---|
static byte[] |
getBytes(int amount)
Generates a user-specified number of random bytes. |
static InputSupplier<ByteArrayInputStream> |
getSupplier(int amount)
Generates a user-specified number of random bytes, returning them as an input supplier. |
static int |
nextInt()
Returns a pseudorandom, uniformly distributed int. |
static int |
nextInt(int max)
Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the
specified value (exclusive). |
static int |
nextInt(int min,
int max)
Returns a pseudorandom, uniformly distributed int value between the min
argument (inclusive) and the max argument (exclusive). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int nextInt()
int.
public static int nextInt(int max)
int value between 0 (inclusive) and the
specified value (exclusive).
public static int nextInt(int min,
int max)
int value between the min
argument (inclusive) and the max argument (exclusive).
public static byte[] getBytes(int amount)
public static InputSupplier<ByteArrayInputStream> getSupplier(int amount)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||