Skip to content

Instantly share code, notes, and snippets.

@sturadnidge
Created October 25, 2014 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sturadnidge/756790e371e6383ab50f to your computer and use it in GitHub Desktop.
Save sturadnidge/756790e371e6383ab50f to your computer and use it in GitHub Desktop.
Generates a random 6 digit hex
// nice one paul irish + friends
// http://www.paulirish.com/2009/random-hex-color-code-snippets/
function hexGen() {
return Math.floor(Math.random()*16777215).toString(16)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment