|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ThreadLocal
net.pakl.rl.RandomPerThread
public class RandomPerThread
This class ensures that each thread that invokes it will get a unique random number generator. I believe this was done so that different runs would result in the same exact values (replicate).
| Constructor Summary | |
|---|---|
RandomPerThread()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
initialValue()
|
void |
setRandomSeed(long x)
|
| Methods inherited from class java.lang.ThreadLocal |
|---|
get, remove, set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomPerThread()
| Method Detail |
|---|
public void setRandomSeed(long x)
public java.lang.Object initialValue()
initialValue in class java.lang.ThreadLocal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||