objectdraw
Class RandomDoubleGenerator

java.lang.Object
  extended byobjectdraw.RandomDoubleGenerator

public class RandomDoubleGenerator
extends java.lang.Object

A generator that provides random double between two values upon demand.

Version:
1.1.2 released July 2006 *

Constructor Summary
RandomDoubleGenerator(double min, double max)
          Constructs a new RandomDoubleGenerator that can generate values v such that min <= v < max.
 
Method Summary
 double nextValue()
          Retrieves a new double value from the generator.
 java.lang.String toString()
          produce String description of this random number generator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RandomDoubleGenerator

public RandomDoubleGenerator(double min,
                             double max)
Constructs a new RandomDoubleGenerator that can generate values v such that min <= v < max.

Parameters:
min - the minimum value
max - the maximum value
Method Detail

nextValue

public double nextValue()
Retrieves a new double value from the generator.

Returns:
a random double

toString

public java.lang.String toString()
produce String description of this random number generator

Returns:
description of this random number generator