|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RandomNumberGenerator
Interface for number generators
Method Summary | |
---|---|
boolean |
nextBoolean()
Get the next boolean |
boolean |
nextBoolean(double d)
Get the next boolean with probability of true defined by d 0<=d<=1 |
char |
nextChar()
Get the next char |
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 |
short |
nextShort()
Get the next short |
void |
setSeed(int[] aI)
Set the seed |
void |
setSeed(long l)
Set the seed |
Method Detail |
---|
int nextInt(int n)
n
- max in value
int nextInt()
double nextDouble()
short nextShort()
char nextChar()
boolean nextBoolean()
boolean nextBoolean(double d)
d
- probablity of true
void setSeed(long l)
l
- seedvoid setSeed(int[] aI)
aI
- seed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |