Last active
May 20, 2020 08:39
-
-
Save q2p/052d2815fadb0b1d785ae45f7668a858 to your computer and use it in GitHub Desktop.
A small line of code, to generate random colors
This file contains hidden or 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
document.body.style.backgroundColor = "#" + ("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