Hey Guys,
Have created some code below, the problem is that I would like to re-insert the numbers back in to the pool, with the possiblity that the same number could occur in all the draws... Any help would be appreciated eh....
Thanks,
Grunta
$start = 1;
$end = 5;
$draws = 5;
$nums=range($start,$end);
print 'All Numbers "ARE" Back in Pool <br>Pool Numbers Range from ' . $start . ' to ' . $end . ' with ' . $draws . ' draws allocated<br> And the Number(s) are as follow.......<br>';
shuffle ($nums);
for ($count=0;$count<$draws;$count++)
{
print '' . $nums[$count] . '<br>';
}
Have created some code below, the problem is that I would like to re-insert the numbers back in to the pool, with the possiblity that the same number could occur in all the draws... Any help would be appreciated eh....
Thanks,
Grunta
$start = 1;
$end = 5;
$draws = 5;
$nums=range($start,$end);
print 'All Numbers "ARE" Back in Pool <br>Pool Numbers Range from ' . $start . ' to ' . $end . ' with ' . $draws . ' draws allocated<br> And the Number(s) are as follow.......<br>';
shuffle ($nums);
for ($count=0;$count<$draws;$count++)
{
print '' . $nums[$count] . '<br>';
}