Most "which character are you?" quizzes are rigged by accident. One character shows up in more answers than the others, or always sits in the first slot, or wins every tie because it comes first in a list. Nobody notices until a friend group compares results and half of them got the same one.
I maintain the free personality tests on cv.cm, which now has around 180 quizzes in nine languages, and most of the fan quizzes have eight results and twelve four-option questions. Here is how they are built so that every result is equally likely, and how one balanced layout is reused across dozens of quizzes without them feeling the same.
1. Count the slots
Twelve questions × four options = 48 answer slots. With eight results, each result gets exactly 6 slots. That is the first rule, and it is easy to break by hand when you are writing copy first and assigning characters later.
So the layout comes first, with neutral placeholder keys, and the copy is written to fit it:
type ChoiceItem = { options: Record<string, number>[] }; const LAYOUT: ChoiceItem[] = [ { options: [{ h: 2 }, { b: 2 }, { a: 2 }, { g: 2 }] }, { options: [{ c: 2 }, { f: 2 }, { b: 2 }, { d: 2 }] }, // ...ten more questions ]; 2. Spread every result over the positions
Even with 6 slots each, a result that is always option A gets picked more by people who skim. With 6 appearances and 4 positions you can't be perfectly even, so the rule is "one or two times in each position", checked by a test.
3. No two questions may split the cast
If question 3 offers results {a, b, c, d} and question 7 offers {e, f, g, h}, those two questions together form a fork: every reader is pushed into one half of the cast. The layout test therefore checks that every pair of results meets in two or three questions, never zero, and that no two questions are complements:
const sets = LAYOUT.map((q) => new Set(q.options.map((o) => Object.keys(o)[0]))); for (const a of dims) for (const b of dims) { if (a >= b) continue; const meet = sets.filter((s) => s.has(a) && s.has(b)).length; expect(meet).toBeGreaterThanOrEqual(2); expect(meet).toBeLessThanOrEqual(3); } I found a layout meeting all three rules with a small random search: shuffle, score, keep the best, repeat for a few seconds.
4. Ties: don't let list order decide
With small whole-number scores, ties are common. If the tie goes to whichever result is listed first, the first character in the list quietly wins more often. A random pick fixes the bias but gives a different result when someone retakes the quiz with the same answers.
The fix is a deterministic hash of the answers that scored the tied results (FNV-1a plus a 32-bit finalizer). Same answers, same result; across all readers, every tied result wins equally often. The page also says "Tied with X" instead of pretending the runner-up lost.
5. Reuse one layout without repeating yourself
A good layout takes effort to find, so every eight-result quiz reuses it through two helpers:
// rename the placeholder results const relabel = (items, names) => items.map((q) => ({ options: q.options.map((o) => Object.fromEntries(Object.entries(o).map(([k, v]) => [names[k], v]))), })); // put each question's options in a new order, e.g. [2, 1, 0, 3] const arrange = (items, order) => items.map((q) => ({ options: order.map((i) => q.options[i]) })); Renaming keeps the balance proofs intact (they don't depend on names). Re-ordering gives each quiz its own answer positions, so a reader who took the Frieren quiz and then the Detective Conan one can't spot that "option C in question 4" lines up with the same slot. There are 24 orders of four options; rotations are handled by a separate shift helper, and a test fails if any two quizzes share a layout under any renaming or question order. When the orders run out, it's time to search for a new base layout.
6. Write the copy last
Only after the layout is fixed do I print each question's four result keys and write options that fit them:
1 gyokuyou | gaoshun | maomao | jinshi 2 lihaku | luomen | gaoshun | lihua ... The constraint helps: every question has to offer four different, plausible personalities, which is exactly what makes a quiz fun to take.
7. Check it with simulation
The test suite also answers each quiz many thousands of times at random and checks that every result wins at about the same rate. That catches mistakes the structural checks miss, such as a typo in a key that gives one character a seventh slot.
If you want to see the result, the tests hub on cv.cm lists them all; every fan quiz shows your scores for all eight characters, not just the winner, and runs in the page with no sign-up.
