Created
January 3, 2018 12:57
-
-
Save Khangeldy/c4e0b7f60fc67f19a1efa4fadb1fcaa5 to your computer and use it in GitHub Desktop.
Get random color in hex
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
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