|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface RandomNumberGenerator
A (pseudo) random number generator is an algorithm designed to generate a sequence of numbers that lack any pattern.
It is very important to know that the sequence is not random at all and that it is completely determined by a relatively small set of initial values. Knowing the generation algorithm and the states can predict the next value, as the values are generated in a deterministic way.
| Method Summary | |
|---|---|
double |
nextDouble()
Get the next random double. |
void |
seed(long... seeds)
Seed the random number generator to produce repeatable sequences. |
| Method Detail |
|---|
void seed(long... seeds)
seeds - the seedsdouble nextDouble()
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||