This code works with the random function to variably change the background color of the table rows generated in the for loop. It then displays both the variables within each iteration of the loop.
Overview
There are a few take aways to this code.
PHP is very powerful in being able to generate a static web page