yeah, my linux(Mandrake 8, Apache 1.3.22, PHP 4.1.0) box also gives me a 6 digit 
integer each time too.

but when i tried on my win32 (Win2k, Apache 1.3.22, PHP 4.1.0), it is limited to a max 
of 32767 as indicated with getrandmax(). the origional author of the problem probably 
using windows too :)

>> should be because rand() can\'t generate such a large number for u. 
>> use $max_random_number = getrandmax(); to check 
>Hmmm... My webserver gives me no problems witht this at >all. 
>(Sun E250 with Solaris 8, Apache 1.3.20 and PHP4.6) 

>This : 

>$floor = 100000; 
>$ceiling = 999999; 
>$random = rand($floor, $ceiling); 
>print $random; 

>Gives me a 6-digit integer every time 

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to