Tutorial Random Hex Color

by in , 07 Mar 2014 0

var randomColor = Math.floor(Math.random()*16777215).toString(16);

View Demo

There is also a PHP version.

Reference URL

Leave a Reply