utils
Class VSRandom

java.lang.Object
  extended by java.util.Random
      extended by utils.VSRandom
All Implemented Interfaces:
java.io.Serializable

public final class VSRandom
extends java.util.Random

The class VSRandom. Some customization of the standard Random class of Java.

Author:
Paul C. Buetow
See Also:
Serialized Form

Constructor Summary
VSRandom(long seedAdd)
          Instantiates a new VSrandom object.
 
Method Summary
 int nextInt()
           
 long nextLong(long mod)
          Next long.
 
Methods inherited from class java.util.Random
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextLong, setSeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VSRandom

public VSRandom(long seedAdd)
Instantiates a new VSrandom object.

Parameters:
seedAdd - the seed to add.
Method Detail

nextInt

public int nextInt()
Overrides:
nextInt in class java.util.Random

nextLong

public long nextLong(long mod)
Next long.

Parameters:
mod - the mod
Returns:
the random long