Created
August 13, 2022 15:37
-
-
Save chaoslogick/ca417dacf7765ecca2da2ec325596c72 to your computer and use it in GitHub Desktop.
JS: Random hex value
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
let rndHex = Math.floor(Math.random() * 0xffffff).toString(16).padEnd(6, '0'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment