How random selection, weights, and no-repeat draws work
A spinning animation makes a draw visible, but the important questions are what goes into the draw, how chances are assigned, and what changes after a result. This guide explains the behavior of WheelofRandomNames with examples you can reproduce.
How does the random name picker select a winner?
The browser selects the result when you press SPIN, before the slowdown animation finishes. The app obtains random 32-bit values through the browser’s Web Crypto API. It maps an accepted value to an integer ticket in the eligible weight total, then assigns that ticket to an entry. The animation receives the selected entry and finishes at the center of its slice.
Mapping an arbitrary random integer with a remainder alone can favor some outcomes when the interval does not divide evenly into 232. The engine uses rejection sampling: it discards the small upper tail outside the largest complete multiple of the requested interval and draws again. The accepted interval then contains the same number of tickets for each possible integer.
The list is limited to 5,000 entries, with whole-number weights from 0 to 10,000. Those bounds keep the maximum weight total at 50 million, within the random-integer helper’s supported range. Disabled entries and weight-zero entries do not receive tickets.
Cryptographic randomness helps prevent predictable selection. It does not verify participant eligibility, secure an edited browser, establish event rules, or provide independent certification of a giveaway. Someone controlling the page can also control its inputs. There is no built-in “choose this winner” setting in the wheel interface.
How do weighted wheel probabilities work?
For one spin, an eligible entry’s probability is its weight divided by the sum of all eligible weights. Weight 2 gives twice the chance of weight 1, not a promise to win every second spin.
| Entry | Weight | Probability |
|---|---|---|
| Alex | 1 | 25% |
| Blair | 2 | 50% |
| Casey | 1 | 25% |
In this example the total is 4. Blair receives 2 of the 4 tickets. If Blair is disabled, Alex and Casey each receive half of the remaining total. Sorting entries, changing colors, uploading a wheel image, or choosing a longer animation changes the presentation rather than those probabilities.
Are duplicate names extra chances?
Yes. Each line is a separate entry with its own identifier. If Alex appears twice at weight 1 and Blair appears once at weight 1, the displayed label Alex has two-thirds of the total chance. Two different students named Alex may need separate identifiers, while an accidental duplicate may need removal. Decide which case you have before using Remove duplicate names.
What does “without replacement” mean?
A single ordinary spin keeps the entry list intact unless you remove the result or enable automatic removal. The same entry can therefore win again. With automatic removal, the selected entry is absent from later draws; Undo can restore removed entries.
A multiple-winner batch excludes each selected entry before choosing the next in that batch. The active weight total is recalculated each time. It then restores the complete list for future batches unless removal is enabled. The limit is 20 winners and cannot exceed the number of eligible entries.
Worked example: two winners from four equal entries
Enter Alex, Blair, Casey, and Devon once each and choose two winners. Each entry has a 2/4, or 50%, chance of appearing somewhere in the batch. An ordered sequence such as Alex then Blair has probability 1/4 × 1/3 = 1/12. Blair then Alex is a different sequence, though it gives the same two names.
Why unequal weights need a different calculation
Return to weights Alex 1, Blair 2, Casey 1 and choose two winners. Blair’s chance of inclusion is 1/2 + (1/4 × 2/3) + (1/4 × 2/3) = 5/6. Doubling Blair’s single-spin chance would incorrectly predict certainty. The changing denominator matters when an entry leaves the draw.
Separate entries with the same label can both appear in a batch. If you need distinct people rather than distinct entries, reconcile duplicates and identifiers before you draw.
Which random tool matches the job?
| Your task | Use | Important distinction |
|---|---|---|
| One winner with weights | Wheel | Weights affect both slice size and selection. |
| Several distinct entries | Multiple Winner Picker | Entries are excluded within one batch; future batches are separate. |
| A complete speaking order | Random Order Generator | Every eligible entry appears once. Weights do not favor earlier positions. |
| Balanced headcounts | Random Team Generator | 11 people in three teams gives sizes 4, 4, and 3. Skills and pair constraints are not balanced. |
| An inclusive integer interval | Random Number Generator | 120 through 145 includes 26 integers. Repeated picks can repeat numbers. |
| Two equal outcomes | Coin Flip | Previous flips do not change the next flip’s odds. |
| The sum of ordinary dice | Dice Roller | Two-dice totals are not uniform: 7 has six combinations; 2 has one. |
| Cards without repeated cards | Random Card Generator | The session deck shrinks until reset. Wheel spins do not use that deck. |
Groups and Random Rank shuffle eligible entries using Fisher–Yates. Every active entry appears once; positive weights are an eligibility requirement but do not affect positions or team membership. An entry with weight zero is excluded. Two equal labels remain two distinct entries.
A practical checklist before selecting names
- Define the unit. Does one entry represent a person, a ticket, a task, or a prize? Keep that meaning consistent.
- Prepare eligibility. Remove unavailable options, reconcile duplicates, and explain deliberate weights.
- Choose replacement rules. Decide whether a winner can appear again in this batch and in a later round.
- Keep a copy of the inputs. Export JSON for a reusable wheel configuration. Record eligibility checks separately if they matter to your event.
- Save the output you need. Copy or export winners, teams, or the speaking order. Do not assume every tool result becomes wheel-spin history.
What is saved, shared, or lost on reload?
Each page saves its own wheel workspace in this browser. Different browsers, profiles, domains, and devices have separate storage. The homepage and a dedicated template page also keep separate workspaces. Clearing site data can remove them.
JSON wheel exports preserve entries, weights, settings, and an optional uploaded image. Importing a configuration creates a wheel configuration; it does not restore its past spin history. Export wheel results separately as CSV. Groups and rankings are session outputs, while the card tool’s deck is separate transient state.
A shared URL contains an encoded, readable copy of the wheel configuration. It is not encrypted, is not a permission-controlled remote wheel, and does not synchronize later edits. Large image-containing links can be truncated by messaging apps, so use a JSON export for a large transfer. Read the privacy notice before sharing participant data.
How can I check the result behavior myself?
Try the 1–2–1 weighted example in the wheel’s simulation panel. A large sample should tend toward 25%, 50%, and 25%, but finite runs vary. Simulation is useful for finding gross mistakes; it neither predicts the next winner nor certifies the generator. For a no-repeat check, use four distinct entries and request four winners: each should appear once in that batch.
These worked examples describe this project’s implemented engine and tool limits. Web Crypto reference: Crypto.getRandomValues. You can reproduce the examples in the wheel.