|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.framework.RandomGenerator
public abstract class RandomGenerator
This class represents the random number generation source.
Constructor Summary | |
---|---|
RandomGenerator()
|
Method Summary | |
---|---|
static RandomGenerator |
getInstance()
Returns the RandomGenerator instance. |
abstract long |
getSeed()
Returns the seed value which was used to initilise the random number generator. |
abstract double |
nextDouble()
Returns the next pseudorandom double value between 0.0 and 1.0 from this random number generator's sequence. |
abstract int |
nextInt()
Returns the next pseudorandom int value from this random number generator's sequence. |
abstract int |
nextInt(int n)
Returns a pseudorandom int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomGenerator()
Method Detail |
---|
public static RandomGenerator getInstance()
RandomGenerator
instance.
RandomGenerator
instance.public abstract double nextDouble()
public abstract int nextInt()
public abstract int nextInt(int n)
n
- the upper bound on the random number to be returned.
public abstract long getSeed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |