Tutorial Random Hex Color

by in , 0

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

View Demo

There is also a PHP version.

Reference URL

Leave a Reply