gap
Interface RandomGenerator

All Superinterfaces:
java.io.Serializable

public interface RandomGenerator
extends java.io.Serializable

Author:
Pietro Berkes, Samuele Pedroni

Method Summary
 float random()
          Compute a pseudo random float in the range 0.0 <= x < 1.0 .
 float randomFloat(float range)
          Compute a pseudo random float in the range 0.0 <= x < range.
 float randomFloat(float min, float max)
          Compute a pseudo random float in the range min <= x < max.
 int randomInt(int range)
          Compute a pseudo random int in the range 0 <= x < range.
 int randomInt(int min, int max)
          Compute a pseudo random int in the range min <= x < max.
 

Method Detail

random

public float random()
Compute a pseudo random float in the range 0.0 <= x < 1.0 .

randomFloat

public float randomFloat(float range)
Compute a pseudo random float in the range 0.0 <= x < range.

randomFloat

public float randomFloat(float min,
                         float max)
Compute a pseudo random float in the range min <= x < max.

randomInt

public int randomInt(int range)
Compute a pseudo random int in the range 0 <= x < range.

randomInt

public int randomInt(int min,
                     int max)
Compute a pseudo random int in the range min <= x < max.