note 12826 deleted from function.array-rand by irc-html
| From: | irc-html@php.net | Date: | Sat, 19 Jan 2002 21:08:26 +0000 |
| Subject: | note 12826 deleted from function.array-rand by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25472@lists.php.net to get a copy of this message | ||
The "reliable shuffle" posted above needs a minor modification:
mt_rand(0, $i) instead of mt_rand(). For hard-to-explain statistical reasons, this is the correct
algorithm.