net.sourceforge.arbaro.params
Class Random

java.lang.Object
  extended by java.util.Random
      extended by net.sourceforge.arbaro.params.Random
All Implemented Interfaces:
java.io.Serializable

public class Random
extends java.util.Random

Random class to add variations to the tree. It has methods getState() and setState() to save and restore the random seed

See Also:
Serialized Form

Constructor Summary
Random(long seed)
           
 
Method Summary
 long getState()
           
 void setState(long state)
           
 double uniform(double low, double high)
           
 
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
 

Constructor Detail

Random

public Random(long seed)
Method Detail

uniform

public double uniform(double low,
                      double high)

getState

public long getState()

setState

public void setState(long state)