[PHP-DEV] Bug #10837 Updated: The rand function doesn't work

2001-06-22 Thread sniper

ID: 10837
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Bogus
Bug Type: Math related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

No feedback, most likely user error.


Previous Comments:
---

[2001-05-13 04:49:07] [EMAIL PROTECTED]
Status: Feedback

---

[2001-05-13 04:48:20] [EMAIL PROTECTED]
Works for me on Linux:

[derick@aarde seti]$ php -q
?php
echo rand(1,50)-1;
echo n;
?
27

Did you use srand to seed the random number generator?
(www.php.net/srand)

regards,
Derick

---

[2001-05-12 23:48:43] [EMAIL PROTECTED]
calling: rand(1, 50)-1 will always get 1 !! try it for your self..this bug is only in 
4.05  ..i imediately rolled back to 4.04pl1 and it works perfect again.

I didn't compile my module..downloaded the win32 build.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10837edit=2


-- 
PHP Development 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]




[PHP-DEV] Bug #10837 Updated: The rand function doesn't work

2001-05-13 Thread derick

ID: 10837
Updated by: derick
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: *Function Specific
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Works for me on Linux:

[derick@aarde seti]$ php -q
?php
echo rand(1,50)-1;
echo \n;
?
27

Did you use srand to seed the random number generator?
(www.php.net/srand)

regards,
Derick

Previous Comments:
---

[2001-05-12 23:48:43] [EMAIL PROTECTED]
calling: rand(1, 50)-1 will always get 1 !! try it for your self..this bug is only in 
4.05  ..i imediately rolled back to 4.04pl1 and it works perfect again.

I didn't compile my module..downloaded the win32 build.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10837edit=2


-- 
PHP Development 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]




[PHP-DEV] Bug #10837 Updated: The rand function doesn't work

2001-05-13 Thread derick

ID: 10837
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Function Specific
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Status: Feedback

Previous Comments:
---

[2001-05-13 04:48:20] [EMAIL PROTECTED]
Works for me on Linux:

[derick@aarde seti]$ php -q
?php
echo rand(1,50)-1;
echo n;
?
27

Did you use srand to seed the random number generator?
(www.php.net/srand)

regards,
Derick

---

[2001-05-12 23:48:43] [EMAIL PROTECTED]
calling: rand(1, 50)-1 will always get 1 !! try it for your self..this bug is only in 
4.05  ..i imediately rolled back to 4.04pl1 and it works perfect again.

I didn't compile my module..downloaded the win32 build.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10837edit=2


-- 
PHP Development 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]