|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Random
com.agentfactory.cldc.scheduler.Rand
public class Rand
Rand was created because the standard CLDC Random class does not provide a
nextInt(int) method, which is required in AFME.
| Constructor Summary | |
|---|---|
Rand()
Creates an instance of Rand. |
|
Rand(long seed)
Creates an instance of Rand from the specified seed. |
|
| Method Summary | |
|---|---|
int |
nextInt(int n)
Returns a pseudorandom number between 0 (inclusive) and the specified number (exclusive). |
| Methods inherited from class java.util.Random |
|---|
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextLong, setSeed |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Rand()
public Rand(long seed)
seed - the specified seed.| Method Detail |
|---|
public int nextInt(int n)
nextInt in class java.util.Randomn - the specified upper limit.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||