random elements of an array

From: Date: Thu, 21 Mar 2002 20:17:08 +0000
Subject: random elements of an array
Groups: php.windows 
Request: Send a blank email to php-windows+get-12712@lists.php.net to get a copy of this message
Hi, My problem is: if I have an array (e.g. 1, 2, 3, 4, 5, 6, 7, 8, 9), how I can "shake" the array and get randomized order of the same array (e.g. 5, 8, 1, 9, 3, 4, 7, 2, 6)? Thanks for any help! Afan

« previous php.windows (#12712) next »