Skip to content

Instantly share code, notes, and snippets.

@yuezk
Created August 24, 2015 05:36
Show Gist options
  • Save yuezk/2b796fd1680f4636518f to your computer and use it in GitHub Desktop.
Save yuezk/2b796fd1680f4636518f to your computer and use it in GitHub Desktop.
random color
// 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