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

From: Date: Fri, 05 Sep 2003 18:26:21 +0000
Subject: Re: Using rand() for 10 digit numbers????
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161806@lists.php.net to get a copy of this message
Very Interesting. I tried your code on my machine and I got this... --snip-- 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 --snip-- Weird... I other quick question. What the heck is going on? Scott F. "Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message news:C8F323573C030A448F3E5A2B6FE2070B01AFA7A9@nemesis... [snip] What PHP version do you use? I only have version 4.3.1 on the machine. [/snip] Did this on a 4.2.1 and a 4.3...no probs. Have you tried the code I posted on your machine? <?php $i=25; while($i > 0){ $random=rand (0,99999999999999999); echo number_format($random, 0, '', ',')."\n"; $i--; } ?>

« previous php.general (#161806) next »