|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Random
Constructor Summary | |
Random()
Initializes a sequence of uniformly distributed quasi random numbers with a seed based on the system clock. |
|
Random(double left,
double right)
Initializes a sequence of uniformly distributed quasi random numbers on a given half-open interval [left,right) with a seed based on the system clock. |
|
Random(int seed)
Initializes a sequence of uniformly distributed quasi random numbers with a given seed. |
|
Random(int seed,
double left,
double right)
Initializes a sequence of uniformly distributed quasi random numbers with a given seed on a given half-open interval [left,right). |
Method Summary | |
double |
nextDouble()
Returns the next random number in the sequence. |
void |
nextDoubles(double[] x)
Returns the next N random numbers in the sequence, as a vector. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Random()
public Random(double left, double right)
public Random(int seed)
public Random(int seed, double left, double right)
Method Detail |
public final double nextDouble()
public final void nextDoubles(double[] x)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |