|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Random
model.RandNumGenerator
public final class RandNumGenerator
Singleton random number generator.
| Field Summary | |
|---|---|
private static RandNumGenerator |
_instance
Singleton instance. |
private int |
_seed
Seed value. |
| Constructor Summary | |
|---|---|
private |
RandNumGenerator()
Private singleton constructor. |
| Method Summary | |
|---|---|
int |
getSeed()
Return seed. |
static RandNumGenerator |
instance()
Return singleton instance. |
void |
setSeed(int seed)
Overridden set seed method. |
| Methods inherited from class java.util.Random |
|---|
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static RandNumGenerator _instance
private int _seed
| Constructor Detail |
|---|
private RandNumGenerator()
| Method Detail |
|---|
public static RandNumGenerator instance()
public void setSeed(int seed)
seed - new seedpublic int getSeed()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||