"Rosen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> I'm using PHP code from manual:
> srand( (double) microtime() * 1000000);
> // Get random User ID
> $uid=rand();
>
> but it dowsn't work !
... I would make sure that microtime() is doing what you think it is;
something like
for ($i = 0; $i < 100; $i++) {
$k = (int) microtime();
echo "<br>$k";
for ($j = 0; $j < 10000; $j++)
$m = $j *3;
}
If you get a page of '0 / 0 / 0' you'll know what your problem is...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]