org.gcn.plinguacore.util
Class RandomNumbersGenerator

java.lang.Object
  extended by cern.colt.PersistentObject
      extended by cern.jet.random.engine.RandomEngine
          extended by cern.jet.random.engine.MersenneTwister
              extended by org.gcn.plinguacore.util.RandomNumbersGenerator
All Implemented Interfaces:
cern.colt.function.DoubleFunction, cern.colt.function.IntFunction, java.io.Serializable, java.lang.Cloneable

public class RandomNumbersGenerator
extends cern.jet.random.engine.MersenneTwister

See Also:
Serialized Form

Field Summary
 
Fields inherited from class cern.jet.random.engine.MersenneTwister
DEFAULT_SEED
 
Method Summary
static RandomNumbersGenerator getInstance()
           
 int nextInt(int n)
           
 long nextLong(long n)
           
 
Methods inherited from class cern.jet.random.engine.MersenneTwister
clone, nextInt
 
Methods inherited from class cern.jet.random.engine.RandomEngine
apply, apply, makeDefault, nextDouble, nextFloat, nextLong, raw
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final RandomNumbersGenerator getInstance()

nextLong

public long nextLong(long n)

nextInt

public int nextInt(int n)