-
-
Save johnbabu021/54d52d0ed74a7e10a0658a3a9c40977f to your computer and use it in GitHub Desktop.
html random color
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
function randcolor() { | |
function c() { | |
return Math.floor(Math.random()*220+36).toString(16) | |
} | |
return "#"+c()+c()+c(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment