note 84687 deleted from function.shuffle by danbrown
| From: | danbrown@php.net | Date: | Fri, 25 Jul 2008 17:44:27 +0000 |
| Subject: | note 84687 deleted from function.shuffle by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142716@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
The Fisher-Yates example below seems to have an implementation error. The Wikipedia page has more on
how to implement this algorithm:
http://en.wikipedia.org/wiki/Fisher-Yates_shuffle