|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epochx.random.JavaRandom
public class JavaRandom
| Constructor Summary | |
|---|---|
JavaRandom()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaRandom()
| Method Detail |
|---|
public boolean nextBoolean()
RandomNumberGenerator
nextBoolean in interface RandomNumberGeneratorpublic double nextDouble()
RandomNumberGenerator
nextDouble in interface RandomNumberGeneratorpublic int nextInt(int n)
RandomNumberGenerator
nextInt in interface RandomNumberGeneratorn - max in value
public int nextInt()
RandomNumberGenerator
nextInt in interface RandomNumberGeneratorpublic void setSeed(long l)
RandomNumberGenerator
setSeed in interface RandomNumberGeneratorl - seed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||