/*
 *Created by: 	C. Whittington
 *Date:			17/10/03
 *Purpose:		This program demonstrates the use of Random numbers
 *				in Java.  It prints 20 random numbers between 0 and
 *				9 to the console window.
 */

import java.awt.*;
import java.awt.event.*;
// java.util.* must be imported for Random to work.
import java.util.*;

class Randomtest 
{
	public static void main(String args[]) 
	{
		System.out.println("Starting Randomtest...");
		
		// Creates a new Random object called 'ran'.
		Random ran= new Random();
		
		for(int c=0; c<=20; c++)
		{
			// Creates a integer variable called 'x' and sets 'x' 
			// equal to a random number between 0 and 9.
			int x = ran.nextInt(10);
			// Prints 'x' to the console screen.
			System.out.println(x);
			
		}
	}
}
