Az ötöslottó nyerőszámainak kitalálása!
-
#145
php még nem volt:)
<?php
$lottoNum = array ();
for($counter = 1; $counter <=90; $counter++)
{
array_push($lottoNum,$counter);
}
for($index =1; $index <= 5; $index++)
{
shuffle($lottoNum);
print("<p><strong>$index</strong>. szám: <strong>$lottoNum[0]</strong>.</p>\n");
array_shift($lottoNum);
}
?>