ID: 25639 User updated by: adamm at nycap dot rr dot com Reported By: adamm at nycap dot rr dot com Status: Open Bug Type: Scripting Engine problem Operating System: windows PHP Version: 4.3.3 New Comment:
I downgraded to 4.3.2 and I dont have this problem. I also found several posts on the net about many people on Win XP having this problem with 4.3.3. Definate bug id say. Previous Comments: ------------------------------------------------------------------------ [2003-09-23 18:21:40] adamm at nycap dot rr dot com Description: ------------ I am developing on a newly setup Windows XP Box running PHP 4.3.3 on IIS as CGI. The rand() function is not generating random numbers. Even with a min/max declared it will only once generate a number in that range... and than any other time called (even across browser sessions) it will always and forever generate the same number. The code below is broken down to the smallest example possible. Reproduce code: --------------- <?php echo rand(); ?> Expected result: ---------------- I expect to see a random number. Actual result: -------------- The same number is always displayed. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25639&edit=1