Menu

Building a Fair Random Name Picker Wheel for Any Browser
📰

Building a Fair Random Name Picker Wheel for Any Browser

DEV Community: astro·Parimal Makes·7 days ago
#Jg0ZC0hS
#devtoastro#devto#dev#wheel#spin
Long article (316 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.