There is no function in PHP that will randomize the order of items in an array. To randomize the order of items in an array, you must write your own function to do it. code example
Example: php shuffle array
shuffle($myAry);
shuffle($myAry);