|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp_tools.SeedRNGCommandLine
public class SeedRNGCommandLine
Used to produce a Random
RNG object
The RNG seed can be set by a command line parameter - the array of strings should be passed into the constructor
If no parameter is passed or if the first parameter is not a valid integer then a default value of 0 is used
to seed the RNG
Constructor Summary | |
---|---|
SeedRNGCommandLine()
|
Method Summary | |
---|---|
static java.util.Random |
getRandom(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SeedRNGCommandLine()
Method Detail |
---|
public static java.util.Random getRandom(java.lang.String[] args)
args
- is the array of strings read in from the command line
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |