Correct bug in flipRandom so all cases can be chosen