/ Published in: JavaScript
Generates random hex values ("You know, these guys: #0afec0, #c9f2d0, #9b923e")
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
'#' + Math.floor(Math.random() * 16777215).toString(16);
URL: http://paulirish.com/2009/random-hex-color-code-snippets/