The php array function will randomize the order of an array elements code example Example: php shuffle array shuffle($myAry);