All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class corejava.RandomIntGenerator

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

public class RandomIntGenerator
extends Object

Constructor Index

 o RandomIntGenerator(int, int)
Constructs the class that encapsulates the random integer

Method Index

 o draw()
Used to return a random integer in the range constructed
 o main(String[])
test stub for the class

Constructors

 o 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

Methods

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

 o main
 public static void main(String args[])
test stub for the class


All Packages  Class Hierarchy  This Package  Previous  Next  Index