note 34571 added to function.shuffle

From: Date: Thu, 31 Jul 2003 01:40:37 +0000
Subject: note 34571 added to function.shuffle
Groups: php.notes 
Request: Send a blank email to php-notes+get-53046@lists.php.net to get a copy of this message
After much trials, I found out that calling srand() prior to shuffle() is irrelevant. It is the number of repetitive calls to shuffle() that randomize the array elements. The shuffle() function certainly needs some work or at least the manual. ---- Manual Page -- http://www.php.net/manual/en/function.shuffle.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34571 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34571&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34571&report=yes

« previous php.notes (#53046) next »