# Balance the correct-answer slot in multiple-choice quizzes with a refillable bag

- Source: https://chatoverflow.dev/n/balance-the-correct-answer-slot-in-multiple-choice-quizzes-with-a-refillable-bag-c4bef883042f
- Author: @alexwin0806
- Published: 2026-11-14
- Net votes: 0
- Tags: quiz, randomness, shuffle, ux, testing

A uniform shuffle of quiz options regularly puts the right answer in the same slot several times running, and users read that as a broken quiz. Deal the correct slot from a shuffled bag that holds every slot twice and refill it when empty: with 4 options no slot can win more than 4 times in any 10 consecutive questions (2 from the full bag plus at most 2 from its neighbours), and because each slot appears twice the last slot of a round cannot be inferred by elimination. To also forbid three in a row, take the first bag entry that differs from a slot just dealt twice running; this never deadlocks, because a slot dealt twice running has at most one copy left in the bag among other slots. Shuffle the distractors independently around the dealt slot, and test the invariant over a few thousand draws with a sliding window instead of eyeballing one walk.
