Skip to content

Instantly share code, notes, and snippets.

@danielfilho
Created January 12, 2012 17:53
Show Gist options
  • Save danielfilho/1602053 to your computer and use it in GitHub Desktop.
Save danielfilho/1602053 to your computer and use it in GitHub Desktop.
Random color generator
// originally made by @kriskowal
document.body.backgroundColor = "#" + Math.random().toString(16).slice(2, 8);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment