Last active
October 11, 2015 04:37
-
-
Save tsmsogn/3804022 to your computer and use it in GitHub Desktop.
[javascript]Random rgb 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
(function (h) { | |
return new Array(7 - h.length).join("0") + h | |
})(((1 << 24) * Math.random() | 0).toString(16)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment