I\'m trying to generate random HTML colors in PHP, but I\'m having trouble getting them to look similar, or in the same family. Is there some function I can use to generate
Try this:
//For every hex code $random = mt_rand(0, 16777215); $color = "#" . dechex($random);
And than you can just use it like this:
background-color: ;