Thanks all for you submissions. This is what I came up with, where $this_key is a random selection from the array $the_exploded_ids. I don't know why, but, array_rand() won't work with selection quanity parameter of less than 2. Anybody know why?
srand ((float) microtime() * 10000000); $input = $the_exploded_ids; $rand_keys = array_rand ($the_exploded_ids, 2); $this_key=$input[$rand_keys[0]]; $this_key=trim($this_key); >>> "ROBERT MCPEAK" <[EMAIL PROTECTED]> 09/10/02 10:22AM >>> Could someone show me a quick and simple way to randomly sort array elements? I can't seem to pinpoint the correct parameters in the docs. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php