To keep only a part of the array, slicing it.
$arraySlice[from;to;array name (optional)]
$arrayShuffle $arraySort