|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.environment.random.simple.SimpleRandomSource
Constructor Summary | |
SimpleRandomSource(LogManager manager)
Constructor for SimpleRandomSource. |
|
SimpleRandomSource(LogManager manager,
java.lang.String instance)
Constructor for SimpleRandomSource. |
|
SimpleRandomSource(long seed,
LogManager manager)
Constructor for SimpleRandomSource. |
|
SimpleRandomSource(long seed,
LogManager manager,
java.lang.String instance)
Constructor for SimpleRandomSource. |
Method Summary | |
boolean |
nextBoolean()
DESCRIBE THE METHOD |
void |
nextBytes(byte[] bytes)
DESCRIBE THE METHOD |
double |
nextDouble()
DESCRIBE THE METHOD |
float |
nextFloat()
DESCRIBE THE METHOD |
double |
nextGaussian()
DESCRIBE THE METHOD |
int |
nextInt()
DESCRIBE THE METHOD |
int |
nextInt(int max)
DESCRIBE THE METHOD |
long |
nextLong()
DESCRIBE THE METHOD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleRandomSource(long seed, LogManager manager, java.lang.String instance)
seed
- DESCRIBE THE PARAMETERmanager
- DESCRIBE THE PARAMETERinstance
- DESCRIBE THE PARAMETERpublic SimpleRandomSource(long seed, LogManager manager)
seed
- DESCRIBE THE PARAMETERmanager
- DESCRIBE THE PARAMETERpublic SimpleRandomSource(LogManager manager)
manager
- DESCRIBE THE PARAMETERpublic SimpleRandomSource(LogManager manager, java.lang.String instance)
manager
- DESCRIBE THE PARAMETERinstance
- DESCRIBE THE PARAMETERMethod Detail |
public boolean nextBoolean()
nextBoolean
in interface RandomSource
public void nextBytes(byte[] bytes)
nextBytes
in interface RandomSource
bytes
- DESCRIBE THE PARAMETERpublic double nextDouble()
nextDouble
in interface RandomSource
public float nextFloat()
nextFloat
in interface RandomSource
public double nextGaussian()
nextGaussian
in interface RandomSource
public int nextInt()
nextInt
in interface RandomSource
public int nextInt(int max)
nextInt
in interface RandomSource
max
- DESCRIBE THE PARAMETER
public long nextLong()
nextLong
in interface RandomSource
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |