|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRBNutilities.randomGenerators
public class randomGenerators
Constructor Summary | |
---|---|
randomGenerators()
|
Method Summary | |
---|---|
static int[] |
multRandInt(int min,
int max,
int num)
Returns an array of num random integers between min and max without repetitions Very inefficient implementation unless num << max-min |
static int |
randInt(int min,
int max)
Returns a random integer between min and max (inclusive) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public randomGenerators()
Method Detail |
---|
public static int randInt(int min, int max)
min
- max
-
public static int[] multRandInt(int min, int max, int num)
min
- max
- num
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |