From: [EMAIL PROTECTED] Operating system: Windows 2000 server PHP version: 4.0.5 PHP Bug Type: *Function Specific Bug description: The "rand" function doesn't work 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. -- Edit Bug report at: http://bugs.php.net/?id=10837&edit=1 -- 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]