Fixed some issues with pattern randomization
Fixed some issues with pattern randomization

Also removed some debug code

mcgrew/dwrandomizer,mcgrew/dwrandomizer,mcgrew/dwrandomizer,mcgrew/dwrandomizer,mcgrew/dwrandomizer