Created
October 22, 2022 19:40
-
-
Save oguzhancvdr/3654436754a849a1a2b1275b008d6fe1 to your computer and use it in GitHub Desktop.
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 getRandomHexColor = () => { | |
const randomValue = Math.floor(Math.random() * 0xffffff); | |
const hexValue = randomValue.toString(16); | |
return hexValue.padStart(6, "0"); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Generate Random Hex