srand and array_rand don't work :(
Posted: Sun Sep 29, 2002 3:20 pm
my code:
srand ((float) microtime() * 10000000);
return array_rand($lines,100);
The returned array is ALWAYS in the same order. I'm running PHP 4.2.3 and Apache/2.0.39
Does anyone have a solution or a workaround for this problem?
srand ((float) microtime() * 10000000);
return array_rand($lines,100);
The returned array is ALWAYS in the same order. I'm running PHP 4.2.3 and Apache/2.0.39
Does anyone have a solution or a workaround for this problem?