Page 1 of 1

srand and array_rand don't work :(

Posted: Sun Sep 29, 2002 3:20 pm
by sKreeM
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?

Posted: Sun Sep 29, 2002 3:49 pm
by sKreeM
when i upload this script to my webhost (lycos.co.uk) it works fine :(