Example 1 — Assign by shuffling
Show the steps and the answer
Sort the four: Ben 0.12, Dee 0.31, Cal 0.57, Ana 0.83.
Sorting by a random number puts the class in an order that no one chose.
Compare with the cut-off 0.49: Ben (0.12) and Dee (0.31) are below it and go before dinner; Cal (0.57) and Ana (0.83) are above it and go after dinner.
Each student had the same chance of a low number, so each was equally likely to land in either group.
Check balance: points in average prior grade.
A small gap like this is what chance leaves behind; it is not evidence of unfair assignment.
Note what else is balanced: sleep habits, home noise and motivation were never measured, but they are spread by the same chance process.
This is the advantage over matching by hand: chance balances unmeasured variables too, on average.
Answer: Ben and Dee go before dinner; Cal and Ana go after dinner. The groups' prior grades differ by only 0.5 points, a normal chance difference, so the assignment is fair.
Takeaway: Give every participant the same chance of each group, then expect small, chance-sized differences, not perfect balance.