pruntrut on 05/23/12
Last Edited at 05/23/12 09:09pm
function random_color(){ mt_srand((double)microtime()*1000000); $c = ''; while(strlen($c)<6){ $c .= sprintf("%02X", mt_rand(0, 255)); } return $c;}
Report this snippet Tweet
Comment:
You need to login to post a comment.