Method Array.shuffle() Method shuffle array shuffle(array arr) Description shuffle() gives back the same elements, but in random order. The array is modified destructively. See also permute()