FileDocCategorySizeDatePackage
addRandom.javaAPI DocExample595Wed Aug 02 13:09:54 BST 2000None

addRandom

public class addRandom extends Applet

Fields Summary
private int
stopValue
private int
counter
Constructors Summary
Methods Summary
public voidpaint(java.awt.Graphics g)

		stopValue = (int) (Math.random() * 20 + 1);
		while (counter <= stopValue)
		{
			g.drawString("counter is " + counter, 20, counter * 10 + 20);
			counter = counter + 1;
		}