note 29124 rejected from function.rand by victor

From: Date: Tue, 04 Feb 2003 14:50:29 +0000
Subject: note 29124 rejected from function.rand by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-43396@lists.php.net to get a copy of this message
----- On 16-Jul-2002 at 05:27, noisehnois@sigilodoemail.org.net wrote: ----- $firsts = rand(0,999); $seconds = rand(0,999); $thirds = rand(0,999); $fourths = rand(0,999); $total = $firsts.$seconds.$thirds.$fourths; echo $total; ----- $firsts = rand(0,9); $seconds = rand(0,9); $thirds = rand(0,9); $fourths = rand(0,9); ... $total = $firsts.$seconds.$thirds.$fourths...etc.; how about that one? if you have to generate a random number of a 'certain length'..

« previous php.notes (#43396) next »