objectdraw
Class RandomIntGenerator

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

public class RandomIntGenerator
extends java.lang.Object

Generates a random integer between two values.


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

Constructor Detail

RandomIntGenerator

public RandomIntGenerator(int min,
                          int max)
Constructs a new RandomInt.
Parameters:
min - the minimum value (inclusive)
max - the maximum value (exclusive)
Method Detail

nextValue

public int nextValue()
Retrieves the integer value of the RandomInt.
Returns:
random integer

main

public static void main()