net.sf.doodleproject.numerics4j.random
Class MathRNG

java.lang.Object
  extended by net.sf.doodleproject.numerics4j.random.MathRNG
All Implemented Interfaces:
RNG

public class MathRNG
extends java.lang.Object
implements RNG

A random number generator that delegates random number generation to the Math.random() method.

Since:
1.3
Version:
$Revision: 1.3 $ $Date: 2007/11/18 23:51:19 $

Constructor Summary
MathRNG()
           
 
Method Summary
 double nextRandomNumber()
          Access the next random number from this generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathRNG

public MathRNG()
Method Detail

nextRandomNumber

public double nextRandomNumber()
Access the next random number from this generator.

Specified by:
nextRandomNumber in interface RNG
Returns:
the next random number.


Copyright 2004-2004-2007 DoodleProject. All Rights Reserved.