This program allows the user to draw lines of a randomly chosen color on the screen using the mouse as if it were a pencil. It demonstates the use of the random number generator as well as the if and else statements.

Note: This demo requires a Java enabled browser. If you see this message then your browser either doesn't support Java or has had Java disabled.

Click below to download the source files for RandomColors.