|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectpsimjava.Randint
public class Randint
Java random number base generator for integers.
| Constructor Summary | |
|---|---|
Randint()
|
|
Randint(long seed)
Constructor for random number generator objet |
|
| Method Summary | |
|---|---|
long |
draw()
This method generates an integer random number: positive or negative |
float |
fdraw()
This method generates a random number between 0.0 to 1.0 |
void |
seed(long useed)
This method sets the seed to set the random number stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Randint(long seed)
seed - to set the random number stream.public Randint()
| Method Detail |
|---|
public void seed(long useed)
useed - the value for the seed.public long draw()
public float fdraw()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||