make the shuffling fair

see http://en.wikipedia.org/wiki/Fisher–Yates_shuffle for details