advanced code snippet search
pruntrut on 05/23/12
php color
05/23/12 09:09pm
1 person have marked this snippet as a favorite
canberkol
Random color hex
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.