Using rand() for 10 digit numbers????

From: Date: Fri, 05 Sep 2003 16:34:14 +0000
Subject: Using rand() for 10 digit numbers????
Groups: php.general 
Request: Send a blank email to php-general+get-161777@lists.php.net to get a copy of this message
Hi! I looked at the rand() at php.net which spoke about min and max random number. So, I use rand(0,9999999999) to get a 10 digit random number but it only return an 1 digit random number that is displayed at '0'. So, I tried rand(0,9999) with 4 digit random number and got the random number. So, why does it not work with 10 digit numbers? Scott F.

« previous php.general (#161777) next »