|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RandomGenerator
The RandomGenerator interface provides an abstraction for the random number implementation so that more rigorous or alternative implementations can be provided as desired.
ATTENTION: nextDouble should only return values betwen 0 (inclusive) and 1 (exclusive!). The same holds for nextFloat.
| Field Summary | |
|---|---|
static java.lang.String |
CVS_REVISION
String containing the CVS revision. |
| Method Summary | |
|---|---|
boolean |
nextBoolean()
Returns the next pseudorandom, uniformly distributed boolean value from this random number generator's sequence. |
double |
nextDouble()
Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence. |
float |
nextFloat()
Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from this random number generator's sequence. |
int |
nextInt()
Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence. |
int |
nextInt(int a_ceiling)
Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence. |
long |
nextLong()
Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence. |
| Field Detail |
|---|
static final java.lang.String CVS_REVISION
| Method Detail |
|---|
int nextInt()
int nextInt(int a_ceiling)
a_ceiling - the upper boundary excluded
long nextLong()
double nextDouble()
float nextFloat()
boolean nextBoolean()
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||