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
Edited by NotionCommotion
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.