Last active
December 18, 2015 10:39
-
-
Save ferronrsmith/5770263 to your computer and use it in GitHub Desktop.
Simple function to generate a random color in JavaScript
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
var randomColor = function () { | |
return '#' + ('00000' + (Math.random() * 16777216 << 0).toString(16)).substr(-6); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment