Created
August 24, 2015 05:36
-
-
Save yuezk/2b796fd1680f4636518f to your computer and use it in GitHub Desktop.
random color
This file contains 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
// reference: http://llllll.li/randomColor/ | |
function randomColor() { | |
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