PHP Randomizes the order of the elements in an array – PHP April 19, 2011 Pramod T P Leave a comment $numbers = range(0, 9); shuffle($numbers); foreach ($numbers as $number) { echo $number; }