Created
March 1, 2017 07:06
-
-
Save jumplee/c8227f700453d4c326e7d401bd2081a6 to your computer and use it in GitHub Desktop.
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
var getRandomColor = function () { | |
var str = '#' | |
for (var i = 0; i < 6; i++) { | |
str += '0123456789abcdef' [Math.floor(Math.random() * 16)] | |
} | |
return str | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment