To view this content, you need to install Java from java.com

Give each line a (possibly different) random color.
Made the background color random.
Because I added the function named getRandomColor, I had to wrap the "do once" drawing code in the setup function.

Source code: random_horizontal_lines_0004

Built with Processing