note 54210 deleted from function.rand by felipe

From: Date: Sun, 30 Dec 2007 18:43:34 +0000
Subject: note 54210 deleted from function.rand by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134422@lists.php.net to get a copy of this message
Note Submitter: roger at kleverNOSPAM dot co dot uk ---- umpalump's post was very helpful, thankyou. Since random_0_1() can return 0, I would suggest replacing <? $x = random_0_1(); ?> with <? while (!$x) $x = random_0_1(); ?> to avoid an error when performing log($x)

« previous php.notes (#134422) next »