Restructure a ladder of if/else if/else if/else constructs
Avoid non-portable rand_r in SeqShuffle
Fix wrong enum use in FSWrite
Use Knuth's algorithm for list shuffling