BS [Chapter 5.3]: Permuting an array by generating random priorities. Hardest part about this is testing randomness.