How can I generate a random hex color with ruby?
Here's one way:
colour = "%06x" % (rand * 0xffffff)