shuffle

.shuffle()

Returns a copy of this array, where each elements has been randomly moved about. This array is left unaffected.

ns = [ 1, 2, 3, 4, 5 ]
randomNs = ns.shuffle()

See also

random