Let Scratch show you how Kunth's Algorithm P works to shuffle a list.
This is a solution to Rosetta Code's "Knuth shuffle" task. http://rosettacode.org/wiki/Knuth_shuffle