Last active
August 9, 2019 23:03
-
-
Save shiv19/61e486490dfa63b68c8d9e79ff04d477 to your computer and use it in GitHub Desktop.
get random hex color codes
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
const randColor = () => '#' + ('00000'+(Math.random()*(1<<24)|0).toString(16)).slice(-6); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment