Jump to content

Warning: mt_rand(): max(-2147483648) is smaller than min(1)


NotionCommotion

Recommended Posts

Just got the following error.  Yes, it is a 32 bit machine.  I thought I was able to go up to 8 as the last digit instead of 7 since I am starting at 1.  That being said, I obviously don't care about the number being one more, but would like to figure out why it happened.  Did I just get lucky and hit the jackpot?

 

EDIT.  Never mind. Guess I was wrong about going to 8...

 

Warning: mt_rand(): max(-2147483648) is smaller than min(1) in /var/www/public/accounts.php on line 31

 

$id=mt_rand(1,2147483648 ); //Line 31
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.