|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.environment.random.simple.SimpleRandomSource
public class 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 |
void |
setLogManager(LogManager manager)
Sets the LogManager attribute of the SimpleRandomSource object |
| 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 PARAMETER
public SimpleRandomSource(long seed,
LogManager manager)
seed - DESCRIBE THE PARAMETERmanager - DESCRIBE THE PARAMETERpublic SimpleRandomSource(LogManager manager)
manager - DESCRIBE THE PARAMETER
public SimpleRandomSource(LogManager manager,
java.lang.String instance)
manager - DESCRIBE THE PARAMETERinstance - DESCRIBE THE PARAMETER| Method Detail |
|---|
public void setLogManager(LogManager manager)
manager - The new LogManager valuepublic boolean nextBoolean()
nextBoolean in interface RandomSourcepublic void nextBytes(byte[] bytes)
nextBytes in interface RandomSourcebytes - DESCRIBE THE PARAMETERpublic double nextDouble()
nextDouble in interface RandomSourcepublic float nextFloat()
nextFloat in interface RandomSourcepublic double nextGaussian()
nextGaussian in interface RandomSourcepublic int nextInt()
nextInt in interface RandomSourcepublic int nextInt(int max)
nextInt in interface RandomSourcemax - 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 | |||||||||