visidia.misc
Class SynchronizedRandom

java.lang.Object
  extended by visidia.misc.SynchronizedRandom

public class SynchronizedRandom
extends java.lang.Object

SynchronizedRandom is a generator of pseudorandom numbers in a distributed context with concurrent calls. This generator is a singleton (unique instance).


Constructor Summary
SynchronizedRandom()
           
 
Method Summary
static float nextFloat()
          Generates an float value.
static int nextInt()
          Generates an integer value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizedRandom

public SynchronizedRandom()
Method Detail

nextInt

public static int nextInt()
Generates an integer value.

Returns:
the integer value

nextFloat

public static float nextFloat()
Generates an float value.

Returns:
the float value