Randomizes the order of the elements in a given array.