Pure beauty

2012, Oct 24    

Look at this javascript code:

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

It prints a random hex color in just one line.

I love when I find this kind of solutions. Smart, effective…and if you think a little more about it, even simple.

Thank you, Raymond.

Did you like this post? Then