Created
October 25, 2014 15:24
-
-
Save sturadnidge/756790e371e6383ab50f to your computer and use it in GitHub Desktop.
Generates a random 6 digit hex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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