note 19331 added to function.srand
| From: | ceo at l-i-e dot com | Date: | Sat, 23 Feb 2002 22:30:06 +0000 |
| Subject: | note 19331 added to function.srand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26974@lists.php.net to get a copy of this message | ||
D'oh!
Move the $choice = rand(1,3) *OUTSIDE* the if() block, of course!
--
http://www.php.net/manual/en/function.srand.php
http://master.php.net/manage/user-notes.php?action=edit+19331
http://master.php.net/manage/user-notes.php?action=delete+19331
http://master.php.net/manage/user-notes.php?action=reject+19331