<font color=$333333><center> <font face="Arial, Helvetica, sans-serif">SAYISAL LOTO TAHMİNİ </font>
</center></font><br>
<?
if($buton)
{
function isInside($r,$array,$k)
{
for($j=0;$j<=$k;$j++)
{
if($array[$j]==$r)
return 0;
}
return 1;
}
function random()
{
$r= rand(1, 59);
return $r;
}
$i=0;
$adet=array();
while ($i <7 )
{
$control=0;
if($i!=0)
{
while($control==0) {
$random= random();
$control=isInside($random,$adet,$i);
}
}
else{
$random=random();
}
$adet[$i]=$random;
$i++;
}
echo ("<center> <table border=1 bordercolor=#CCCCCC cellpadding=3 cellspacing=0>
<tr style=\"background-color:#f1f1f1\">
<td>$adet[1]</td>
<td>$adet[2]</td>
<td>$adet[3]</td>
<td>$adet[4]</td>
<td>$adet[5]</td>
<td>$adet[6]</td>
</tr> </table> </center>");
?>
<center>
<form action="metin.php" method="POST">
<input type=submit name=buton value=Gönder>
</form>
</center>
<?
}
?>