|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RandomNumberGenerator
| Method Summary | |
|---|---|
boolean |
nextBoolean()
Get the next boolean |
double |
nextDouble()
Get the next double 0<=x<1 |
int |
nextInt()
Get the next int |
int |
nextInt(int n)
Get the next int, where n is max |
void |
setSeed(long l)
Set the seed |
| Method Detail |
|---|
int nextInt(int n)
n - max in value
int nextInt()
double nextDouble()
boolean nextBoolean()
void setSeed(long l)
l - seed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||