function lottery($maxn = "49",$maxb="6") {
srand((double) microtime() * 1000000);
while (1>0) {
$lottery[] = rand(1,$maxn);
$lottery = array_unique($lottery);
if (sizeof($lottery) == $maxb) break;
}
sort($lottery);
return implode(", ",$lottery);
}
$lotterynums = lottery();
?>
Lottery Numbers
And your lottery numbers for this week are...
=$lotterynums?>