[PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results

2001-07-31 Thread jflemer
ID: 12455 Updated by: jflemer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Math Functions Operating System: All PHP Version: 4.0.4pl1, 4.0.6 New Comment: open -> bogus Previous Comments: [2001-0

[PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results

2001-07-31 Thread jflemer
ID: 12455 Updated by: jflemer Reported By: [EMAIL PROTECTED] Old Status: Bogus Status: Open Bug Type: *Math Functions Operating System: All PHP Version: 4.0.4pl1, 4.0.6 New Comment: OK, well can you check to see that microtime() is working for you? This script should print out 100. BTW, y

Re: [PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results

2001-07-31 Thread Heikki Korpela
On 31 Jul 2001 [EMAIL PROTECTED] wrote: > Then load the load100times.php in your browser. The result > should be 100 but is still 4 on the machines I'm testing > on. It works fine here. (4.0.6 on OpenBSD 2.9-current.) Maybe your system's random functions are broken. Which random function does y

[PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results

2001-07-31 Thread sulka
ID: 12455 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: *Math Functions Operating System: All PHP Version: 4.0.4pl1, 4.0.6 New Comment: Ok, here's sample code that should wake you up. The problem occurs even when srand is only called once / page load.

[PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results

2001-07-31 Thread jflemer
ID: 12455 Updated by: jflemer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Math Functions Operating System: All PHP Version: 4.0.4pl1, 4.0.6 New Comment: Try moving your srand() call outside of the pwd() function. That should fix it. The posted script returns 4 for me

[PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results

2001-07-30 Thread sulka
ID: 12455 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Math Functions Old Operating System: SunOS 5.8 (Solaris) Operating System: All Old PHP Version: 4.0.4pl1 PHP Version: 4.0.4pl1, 4.0.6 New Comment: The same problem also occurs on PHP 4.0.6 on Darwi

Re: [PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results

2001-07-30 Thread Ramsi Sras
UNSUBSCRIBE ME PLEASE!! [EMAIL PROTECTED] schrieb: ID: 12455 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Math Functions Operating System: SunOS 5.8 (Solaris) PHP Version: 4.0.4pl1 New Comment: Well, when I run that code I get 4, not 500. U

Re: [PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results

2001-07-30 Thread Ramsi Sras
UNSUBSCRIBE ME PLEASE!! [EMAIL PROTECTED] schrieb: ID: 12455 Updated by: rasmus Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Math Functions Operating System: SunOS 5.8 (Solaris) PHP Version: 4.0.4pl1 New Comment: I don't think I understand what the problem is here.  I tested

[PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results

2001-07-29 Thread sulka
ID: 12455 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Math Functions Operating System: SunOS 5.8 (Solaris) PHP Version: 4.0.4pl1 New Comment: Well, when I run that code I get 4, not 500. Upping the number of iterations doesn't help. I think the prob

[PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results

2001-07-29 Thread rasmus
ID: 12455 Updated by: rasmus Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Math Functions Operating System: SunOS 5.8 (Solaris) PHP Version: 4.0.4pl1 New Comment: I don't think I understand what the problem is here. I tested your code with the following: This always returns 500