|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectspec.benchmarks.scimark.utils.Random
public class 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)
left - The left endpoint of the half-open interval [left,right).right - The right endpoint of the half-open interval [left,right).public Random(int seed)
seed - The seed of the random number generator.
Two sequences with the same seed will be identical.
public Random(int seed,
double left,
double right)
seed - The seed of the random number generator. Two sequences
with the same seed will be identical.left - The left endpoint of the half-open interval [left,right).right - The right endpoint of the half-open interval [left,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 | |||||||||