基于PHP的颜色生成器
function randomColor()
{
$str = '//m.sbmmt.com/m/faq/#';
for($i = 0 ; $i {
$randNum = rand(0 , 15);
switch ($randNum)
{
case 10: $randNum = 'A'; break;
case 11: $randNum = 'B'; break;
case 12: $randNum = 'C'; break;
case 13: $randNum = 'D'; break;
case 14: $randNum = 'E'; break;
case 15: $randNum = 'F'; break;
}
$str .= $randNum;
}
return $str;
}
$color = randomColor();
echo $color;
?>
已抢65119个
抢已抢28549个
抢已抢15434个
抢已抢7748个
抢已抢9645个
抢已抢19632个
抢