Last active
March 1, 2019 22:29
-
-
Save gildniy/c9d855cb83b9121ce88487743d56982b to your computer and use it in GitHub Desktop.
Generate random Hex Color string value 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
randomHexColor:string = () => `#${(Math.random()*0xFFFFFF<<0).toString(16)}`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment