Utils
Class StaticRandom

java.lang.Object
  |
  +--Utils.StaticRandom

public final class StaticRandom
extends java.lang.Object

Class that defines a random number generator. It is useful to have a greater control on the seed.

Author:
Olivier Sigaud and Pierre Gérard.

Field Summary
private static java.util.Random random
           
 
Constructor Summary
StaticRandom()
           
 
Method Summary
static double nextDouble()
           
static float nextFloat()
           
static int nextInt(int max)
           
static void setSeed(long seed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

private static java.util.Random random
Constructor Detail

StaticRandom

public StaticRandom()
Method Detail

setSeed

public static final void setSeed(long seed)

nextFloat

public static final float nextFloat()

nextDouble

public static final double nextDouble()

nextInt

public static final int nextInt(int max)