verinec.netsim.util
Class Random

java.lang.Object
  extended by verinec.netsim.util.Random

public class Random
extends Object

A Singleton for the java.util.Random Class to have a single instance of the Randomizer

Version:
$Revision: 47 $
Author:
Dominik Jungo

Field Summary
(package private) static Random instance
           
private static long serialVersionUID
           
 
Constructor Summary
Random()
           
 
Method Summary
static Random getInstance()
          gets the Random Object Instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

instance

static Random instance
Constructor Detail

Random

public Random()
Method Detail

getInstance

public static Random getInstance()
gets the Random Object Instance. If it doesent exist yet it is created.

Returns:
the java.util.Random Object

Copyright © 2005 Verinec, DIUF