So lets say i have a list of tuples
l=[(1,2),(3,4),(5,6),(7,8),(9,10)]
I want to shuffle the values after a specific rule, so that after i shuffle the list i can unshuffle it back using the same method.
One example would be that i shift the entire list to the right with 1 position and then i can shift the shuffled list with one position to the left so i can get the original list.
But this seems kinda simple so i was wondering if they're more creative methods of doing this
Edit: The idea would be that if i send someone the shuffled list, he could unshuffle it without knowing the original list,only knowing the method used for shuffle