note 76924 deleted from function.shuffle by bobby
| From: | bobby@php.net | Date: | Mon, 06 Aug 2007 14:38:31 +0000 |
| Subject: | note 76924 deleted from function.shuffle by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-129218@lists.php.net to get a copy of this message | ||
Note Submitter: Tim
----
al at giicorp dot com's implementation is statistically incorrect. monte at ohrt dot com has
the correct version. Imagine putting all the elements into a bag and picking elements from the bag
randomly, one by one. That's the way the algorithm works. Consult your average book about
algorithms for more information.