Scramble Python List
Copy the array then scramble it:
import randomarray = range(10) newarr = array[:] # shallow copy should be fine for thisrandom.shuffle(newarr)#return newarr if needs be.zip(array, newarr) # just to show they're differentOut[163]:[(0, 4), (1, 8), (2, 2), (3, 5), (4, 1), (5, 6), (6, 0), (7, 3), (8, 7), (9, 9)]