I'm not sure how to apporach this problem. If i have a link list with the following elements

123

how do i randomize it so each time the function is run it will return either 123, 321, 132 312 etc.

and so for example the function is ran twice and it returns the new randomized list 321 and then 132 how do i keep a reference to the previous returned values so i dont get any duplicate randomized values..hmm

Any hints?