Skip to content

Instantly share code, notes, and snippets.

@dtoma
Last active December 31, 2015 18:09
Show Gist options
  • Save dtoma/8025255 to your computer and use it in GitHub Desktop.
Save dtoma/8025255 to your computer and use it in GitHub Desktop.
Ruby - generate random hexadecimal colour
colour = "%06x" % (rand * 0xffffff)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment