corejava
Class RandomIntGenerator

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

public class RandomIntGenerator
extends java.lang.Object


Constructor Summary
RandomIntGenerator(int l, int h)
          Constructs the class that encapsulates the random integer
 
Method Summary
 int draw()
          Used to return a random integer in the range constructed
static void main(java.lang.String[] args)
          test stub for the class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomIntGenerator

public RandomIntGenerator(int l,
                          int h)
Constructs the class that encapsulates the random integer
Parameters:
l - the lowest integer in the range
h - the highest integer in the range
Method Detail

draw

public int draw()
Used to return a random integer in the range constructed

main

public static void main(java.lang.String[] args)
test stub for the class