Football Group Draw Generation

By Jeffrey S. Rosenthal, in collaboration with Gareth O. Roberts, March 2022. See the instructions below, and the project description.

Instructions: This web page uses a JavaScript program to perform one of three different methods to generate uniform-probability draws of teams into groups for the FIFA World Cup in 2018 or 2022; for details see the project description.

Click "Single Draw" for the rejection-sampler method, or "Balls Update" (repeatedly) for the multiple-balls method, or "one" or "+" (repeatedly) for the swapping method.

Alternatively, use the following keyboard shortcuts (after clicking on the canvas): 'd' for a single rejection-sampler draw; 'b' (repeatedly) to update the multiple-balls method; '1' to update one swap step; '0-9' to set the swap speed; 's' to toggle between row-by-row or randomised swaps; 'r' to restart the swaps; or 'y' to toggle between the World Cup years 2018 and 2022.


This program is written by Jeffrey Rosenthal, in collaboration with Gareth Roberts, in March 2022. See our project description. See also my other JavaScript and my general-interest book.