Opus5
Class SimpleRV

java.lang.Object
  |
  +--Opus5.SimpleRV
All Implemented Interfaces:
RandomVariable

public class SimpleRV
extends java.lang.Object
implements RandomVariable

A random variable uniformly distributed on the unit interval, (0,1).

Version:
$Id: SimpleRV.java,v 3.2 1998/07/28 02:09:16 brpreiss Exp $
Author:
Bruno R. Preiss, P.Eng.

Fields inherited from interface Opus5.RandomVariable
copyright
 
Constructor Summary
SimpleRV()
           
 
Method Summary
 double nextDouble()
          Returns a random number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRV

public SimpleRV()
Method Detail

nextDouble

public double nextDouble()
Returns a random number. The numbers returns are uniformly distributed on the unit interval.
Specified by:
nextDouble in interface RandomVariable
Returns:
A random number.