One problem with generating a random background color is that the text may
not show up.
For instance if the background is black and you print in black, nothing will
show.
One solution to this problem is demonstrated here:
Use the values of red, green and blue in an equation that guarantees that the
values will still be between 0 and 255..
The accent color is a percent of the red, green and blue values.
The complement is 255-red, etc. This works fine as long as the color values
selected are not too close to 126!