jmetal.util
Class RandomGenerator

java.lang.Object
  extended by jmetal.util.RandomGenerator
All Implemented Interfaces:
IRandomGenerator

public class RandomGenerator
extends java.lang.Object
implements IRandomGenerator

This code has been taken from deb NSGA-II implementation The code is available to download from http://www.iitk.ac.in/kangal/codes.shtml


Constructor Summary
RandomGenerator()
          Constructor
 
Method Summary
 double nextDouble()
           
 int nextInt(int upperBound)
           
 int rndInt(int low, int high)
           
 double rndReal(double low, double high)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomGenerator

public RandomGenerator()
Constructor

Method Detail

nextInt

public int nextInt(int upperBound)
Specified by:
nextInt in interface IRandomGenerator

nextDouble

public double nextDouble()
Specified by:
nextDouble in interface IRandomGenerator

rndInt

public int rndInt(int low,
                  int high)

rndReal

public double rndReal(double low,
                      double high)