l = list(random.randint(0, 10) for _ in range(10))
l_idx = list(range(len(l)))
random.shuffle(l_idx)
for new_idx, old_idx in enumerate(l_idx):
    pass
Getting previous index values of a python list items after shuffling