tools
Class SeedRNGCommandLine

java.lang.Object
  extended by tools.SeedRNGCommandLine

public class SeedRNGCommandLine
extends java.lang.Object

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

Version:
1
Author:
J Paul Gibson

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

SeedRNGCommandLine

public SeedRNGCommandLine()
Method Detail

getRandom

public static java.util.Random getRandom(java.lang.String[] args)
Parameters:
args - is the array of strings read in from the command line