objectdraw
Class RandomDoubleGenerator

java.lang.Object
  |
  +--objectdraw.RandomDoubleGenerator

public class RandomDoubleGenerator
extends java.lang.Object

Generates a random double between two values.


Constructor Summary
RandomDoubleGenerator(double min, double max)
          Constructs a new Randomdouble.
 
Method Summary
static void main()
           
 double nextValue()
          Retrieves the double value of the Randomdouble.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomDoubleGenerator

public RandomDoubleGenerator(double min,
                             double max)
Constructs a new Randomdouble.
Parameters:
min - the minimum value (inclusive)
max - the maximum value (exclusive)
Method Detail

nextValue

public double nextValue()
Retrieves the double value of the Randomdouble.
Returns:
random double

main

public static void main()