note 66913 deleted from function.shuffle by bjori
| From: | bjori@php.net | Date: | Tue, 06 Jun 2006 21:34:41 +0000 |
| Subject: | note 66913 deleted from function.shuffle by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-113384@lists.php.net to get a copy of this message | ||
Note Submitter: bsl04 uark edu
----
I think Benton at GoatRider dot com above had his explanation right, but left a bit of the code
wrong. He left $i+1 as the second argument to mt_rand, even though he told us that was wrong. The
second argument to mt_rand should be $i because mt_rand generates numbers including its bounds.