Posted By

mike_fowler on 01/29/11


Tagged

random color


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

ozke


Javascript Random Color


 / Published in: JavaScript
 

URL: http://paulirish.com/2009/random-hex-color-code-snippets/

Generates random hex values ("You know, these guys: #0afec0, #c9f2d0, #9b923e")

  1. '#' + Math.floor(Math.random() * 16777215).toString(16);

Report this snippet  

You need to login to post a comment.