Weighted Random Selection Explained: Ticket Raffles & Cryptographic Fairness
How proportional slice weighting works mathematically, why rejection sampling removes modulo bias, and creative ways to use weights in class.
Ready to try this workflow live in your browser?
Try Weighted Spin WheelWhat Is Weighted Random Selection?
In an unweighted draw with 10 names, every slice covers 36° (10% probability). In a weighted draw, each participant receives a positive numerical weight—like raffle tickets, reading-log points, or bonus entries—and their probability equals their individual weight divided by the sum of all weights on the wheel.
For example, if Maya has weight 3, Liam has weight 2, and Sofia has weight 1 (total weight = 6), Maya’s slice spans exactly 180° (50%), Liam’s spans 120° (33.3%), and Sofia’s spans 60° (16.7%). Because ClassWheelHub renders slice arc sizes proportionally, everyone watching can verify fairness at a glance.
Why Rejection Sampling & Web Crypto Eliminate Subtle Bias
Naive random-number code often uses Math.random() or takes a random integer modulo N (value % N). When 2³² is not evenly divisible by N, the modulo remainder slightly favors the first few items in a list. ClassWheelHub eliminates both issues by drawing 32-bit unsigned entropy from window.crypto.getRandomValues() and applying rejection sampling for integer shuffles, plus full 32-bit uniform scaling for continuous weighted interval draws.
Creative Classroom & Event Uses for Weighted Wheels
Weighted wheels unlock motivating, transparent reward systems without guaranteeing that only one person wins:
- Reading Minutes or Practice-Streak Raffles: Students earn 1 base ticket plus 1 bonus weight per completed reading milestone ("Noah * 4"), rewarding consistent effort while keeping hope alive for every learner.
- Review Topic Prioritization: Weight challenging exam concepts higher ("Stoichiometry * 3", "Gas Laws * 2", "Periodic Trends * 1") so a daily warm-up spinner naturally drills tricky standards more often.
- Family Dinner & Movie Compromises: Give the birthday person or chore champion a 2× slice weight while keeping everyone else’s picks genuinely in play.
Quick Answers & FAQs
What syntax do I use to weight an entry on ClassWheelHub?
Type an asterisk and a positive number after the name on its own line—for example, "Sofia * 3" or "Bonus Prize * 0.5".
Can I mix weighted and unweighted entries on the same wheel?
Yes. Any entry without an asterisk automatically receives a default weight of 1, so you only need to add "* N" on lines that should carry extra or reduced weight.
Does the visual slice size always match the real win probability?
Yes. Both the HTML5 Canvas arc span and the Web Crypto selection interval use the exact same weight-to-total-weight ratio.