Easy peasy, make a random number displayed as hex-value, increment 100 times, print message. The interesting part is how to get the hex number since most numbers are considered as integers or floats/doubles; Java provides a simple function included in Strings to output as a certain format, like say as the hex value. Something they took from C, actually.
Pot Of Gold
Rainbows tend to be pretty cool to look at. If you’re lucky you’ll even find a pot of gold at the end of one. Today’s problem is to create a program that generates a random RGB hex value (#7A340E) then prints out the next 100 values (#7A340F, #7A3410, etc.) after that. Afterwards it should print out “POT OF GOLD!!” and then exit.