Picking a random winner for a classroom activity, team standup, or giveaway should take seconds. Most tools either clutter the screen with ads or force you to create an account before you can spin. I built Spin Names Now as a free online wheel of names where you paste or type entries, spin the wheel, and get a fair winner on any device with no sign-up.
The site is built with Astro, MDX, and React. Astro handles the static pages and documentation written in MDX, while React powers the interactive wheel component. Keeping the surrounding pages static means the app loads fast on mobile connections, and users can start typing names and spinning right away without waiting for a heavy bundle.
Fairness is the most important part of a random picker. Instead of relying on a simple Math.random() call or letting animation timing bias the result, the wheel computes a uniform random target angle using crypto.getRandomValues() when available. Each segment occupies an equal slice of 360 degrees, and the final resting angle maps deterministically to the winning entry.
To make the spin feel natural, the wheel animates with requestAnimationFrame and a cubic ease-out curve. It starts with several full rotations at high speed and then decelerates smoothly until it lands on the chosen segment. A fixed pointer at the top indicates the winner, and a clear modal announces the result with options to keep or remove that name for the next round.
Responsive sizing also took careful testing across viewports. The wheel renders inside a square container that scales to fit small phone screens without overflowing, while keeping slice labels readable even when dozens of names are added. State updates happen locally in React so editing the list, shuffling entries, or resetting the wheel stays instant.
If you need a clean, reliable name picker for your next raffle or group session, try Spin Names Now.
Top comments (0)