|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphnetwork.util.Random
public class Random
Constructor Summary | |
---|---|
Random()
|
Method Summary | |
---|---|
static float |
getRandomPositiveFloatLim(float min,
float max)
Returns a random positive float between a minimum and a maximum value given by the user |
static int |
getRandomPositiveInteger(int n)
Returns a random positive number between 1 and a maximum value given by the user |
static int |
getRandomPositiveIntegerLim(int min,
int max)
Returns a random positive int between a minimum and a maximum value given by the user |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Random()
Method Detail |
---|
public static int getRandomPositiveInteger(int n)
n
- the maximum value to return
public static float getRandomPositiveFloatLim(float min, float max)
min
- the minimum value to returnmax
- the maximum value to return
public static int getRandomPositiveIntegerLim(int min, int max)
min
- the minimum value to returnmax
- the minimum value to return
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |