note 4745 deleted from rand by ronabop

From: Date: Sat, 12 Aug 2000 22:47:11 +0000
Subject: note 4745 deleted from rand by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1733@lists.php.net to get a copy of this message
is there an absolute maximum for the MAX value of rand(m,M)? In trying to generate a 10-digit random number, it seems to always generate a nine digit signed value. (which, I suppose, is ten digits, in a way). rand(0,9999999999) = sddddddddd Obviously, the work around for this problem is easy to make, but I'm wondering why this occurs.

« previous php.notes (#1733) next »