|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RandomFunctions
| Method Summary | |
|---|---|
java.util.Random |
getRandom()
|
double |
randomInRange(double low,
double high)
Generate a double uniformly distributed across some range. |
int |
randomInRange(int low,
int high)
|
boolean |
randomIs()
Returns a random boolean value. |
int |
randomToLimit(int limit)
Generate an integer uniformly distributed across 0...limit - 1. |
void |
setRandom(java.util.Random random)
|
| Method Detail |
|---|
int randomInRange(int low,
int high)
double randomInRange(double low,
double high)
low - the lowest number (inclusive) that the resulting double might behigh - the hignest number (exclusive) that the resulting double might be
int randomToLimit(int limit)
limit - the maximum limit (exclusive) of the resulting int
boolean randomIs()
java.util.Random getRandom()
void setRandom(java.util.Random random)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||