import java.awt.*;
import java.applet.*;
import java.util.*;

// Assignment 1, CSci 1211
// Created by Elena Machkasova, 1/16/04
// Modified by ...

// this is a Java applet that draws 3 random rectangles
// The x and y coordinates of the upper left corner 
// and the height and the width are
// evenly distributed between 0 and 199 pixels

public class RandomRectangles extends Applet {

    public void paint(Graphics g) {
	// set the background to white
	g.fillRect(0, 0, 400, 400);

	// create a random number generator
	Random r = new Random();
	// fill in your code here:

The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.