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

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

delphi - How do I identify what code is generating " '' is not a valid floating point value" error dialogue box -