I test php array_rand function and find it has repeat result ,this is my code:
$arr = range(1,10000);
$max = 200;
$time = 0;
while($time < $max){
echo array_rand($arr).'<br>';
$time++;
}
And this is result:
You can see it keeps output repeat array index, and I am confused why it works like this, it is supposed to pick a random index.
