// declare the final variable private final int NUM_POINTS = 20000; // create an object of type Random private Random rand = new Random(); // in paint method declare two int variables x and y // set the backgroung to black using setBackground (...) method // create a for loop with a counter from 1 to NUMN_POINTS and // use the following assignents for x and y x = Math.abs(rand.nextInt()) % APPLET_WIDTH; y = Math.abs(rand.nextInt()) % APPLET_HEIGHT; // if x is less then half of the APPLET_WIDTH the set color to red // otherwise set clor to green // Now draw a line between with the following pair arguments (x, y), (x, y)