shuffle < PHP
The shuffle function shuffles/randomizes the order of the elements in an array
$colors = array("red", "green", "blue", "yellow", "purple");
shuffle($colors);
print_r($colors);
// Array ( [0] => yellow [1] => purple [2] => red [3] => blue [4] => green )