how to randomize colors in javascript code example Example: javascript random color '#'+(0x1000000+(Math.random())*0xffffff).toString(16).substr(1,6)