Created
September 10, 2018 15:17
-
-
Save CharlesAMoss/adc4d75f90237c4189d56da24ecad4dc to your computer and use it in GitHub Desktop.
random hex color
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 hex = '#' + Math.floor(Math.random() * 0x1000000) | |
.toString(16) | |
.padStart(6, '0'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment