|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RndGen
Interface for random number generators.
The basic approach is that a RndGen "wraps" a random number generator, which is called the "randomness source". Calling the next method results in passing the request to the randomness source and applying some additional transformation, is needed.
| Method Summary | |
|---|---|
java.util.Random |
getRandomGen()
Returns the current randomness source. |
double |
next()
Returns a random number. |
void |
setRandomGen(java.util.Random rnd)
Sets the the randomness source for this object. |
| Method Detail |
|---|
double next()
void setRandomGen(java.util.Random rnd)
java.util.Random getRandomGen()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||