Hi there!
I'm trying to generate a series of 15 Random Numbers between 1 and $limit, where there are no duplicated numbers. This is the code I am using.
for ($i=1; $i<=15; $i++)
$x[] = mt_rand(1, $limit);
foreach ($x as $current)
echo $current. "<br />";
This works fairly well, but it still produces duplicate numbers. Can anyone please help with this?
Thanks