Hi.
I've got this simple function:
<?php
function getRandom($length,$max)
{
$random = array();
for($i=0;$i<$length;$i++)
{
$random[]= mt_rand(0,$max);
}
return $random;
}
print_r(getRandom(5,32));
?>
But as you can image sometime it
returns a array with double values.
How can I get a array without double
values ?
Take care.