/* Generate 100 random numbers between 1 and 10, and draw them on the Aplet panel in rows of 10. Do not forget to create the html file to run this applet, namely */ import java.awt.*; import javax.swing.*; public class RandomIntegersApplet extends JApplet { public void paint (Graphics page) { int x = 25; int y = 25; int value, count = 1; while (count <= 100) { value = (int) (Math.random() * 10 + 1); page.drawString (Integer.toString(value), x, y); if ( count % 10 != 0 ) x = x + 40; else { x = 25; y = y + 20; } count = count + 1; } } }