public class IntMG
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.Random |
rnd |
Constructor and Description |
---|
IntMG() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isIntOrInteger(JType ty) |
Generator<PARAM,STEP> |
uniform(int k)
Construct a int generator, that will randomly and uniformly generates ints between
(and inclusive) -k and k.
|
Generator<PARAM,STEP> |
uniform(int lowerbound,
int upperbound)
Construct an int generator that will randomly and uniformly generates ints between
the specified lowerbound (inclusive) and upperbound (exclusive).
|
public static boolean isIntOrInteger(JType ty)
public Generator<PARAM,STEP> uniform(int lowerbound, int upperbound)