How do I randomly generate HTML hex color codes using JavaScript? -


possible duplicate:
random color generator in javascript

i have data i'd display in different colors , want generate colors randomly if possible. how can generate hex color code using javascript?

'#'+(math.random()*0xffffff<<0).tostring(16); 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -