NameWheel

    How the Random Number Algorithm Works

    Deep dive into the technology, cryptographic algorithms, and privacy features that make NameWheel the most trusted random selection tool.

    The Random Selection Algorithm

    Technical Foundation

    NameWheel uses JavaScript's built-in Math.random() function as the foundation for randomization. While Math.random() is a pseudo-random number generator (PRNG), modern browser implementations use sophisticated algorithms that produce statistically random distributions indistinguishable from true randomness for practical purposes.

    The selection process works in three steps: First, we generate a random floating-point number between 0 and 1. Second, we multiply this by the total number of entries to get a random index. Third, we round down to select the corresponding entry from your list. Each entry has an exactly equal probability of selection—if you have 50 names, each has a precise 1/50 (2%) chance every spin.

    Equal Probability

    Every entry has an identical chance of being selected, regardless of position in the list, length of name, or any other factor. True mathematical fairness.

    No Patterns

    The selection algorithm produces no detectable patterns or sequences. Previous results do not influence future spins in any way.

    Independent Events

    Each spin is completely independent. If someone wins, their probability of winning again on the next spin (if not removed) remains exactly the same.

    Cryptographic Quality

    Modern browsers use cryptographically secure seeding for Math.random(), providing randomness quality suitable even for security applications.

    Privacy & Data Security

    Your privacy is our top priority. NameWheel is designed with a privacy-first architecture that ensures your data never leaves your device.

    Client-Side Only Processing

    All computation happens in your browser. When you enter names, spin the wheel, or save your list, everything occurs locally on your device. Your names are never transmitted to our servers, never stored in any database, and never visible to anyone but you.

    This architecture is fundamentally different from most web applications. We don't collect, store, or process your data server-side. We literally cannot access your information—it exists only in your browser's memory and local storage (if you choose to use the save feature).

    Local Storage (Optional)

    When you save your wheel for future use, the names are stored in your browser's localStorage—a private storage area accessible only to you on that specific device and browser. This data never syncs to the cloud or transmits over the internet.

    You maintain full control: clear your browser data at any time to delete saved wheels. Use incognito/private browsing mode if you prefer zero persistence.

    URL Sharing (Encrypted)

    The shareable URL feature encodes your name list directly into the URL using base64 encoding. While this isn't encryption (anyone with the URL can decode it), it means the data exists only in the URL itself—not on our servers.

    Share these URLs carefully. Anyone who receives the link can see the encoded names. For sensitive lists (like medical patients or confidential personnel), use the tool without sharing URLs.

    FERPA & GDPR Compliant

    Because we don't collect or store personal data, NameWheel is compliant with educational privacy laws (FERPA in the US) and data protection regulations (GDPR in Europe) without requiring special configurations or agreements.

    Teachers can confidently use NameWheel with student rosters without violating privacy policies. No data processing agreements or administrator approvals needed.

    How the Wheel Animation Works

    The spinning wheel provides a visual, engaging experience while maintaining complete randomness. Here's what happens when you click to spin:

    1. 1.
      Random Selection First: The winner is determined immediately using the random algorithm described above. This happens before any animation begins.
    2. 2.
      Animation Calculation: The wheel calculates how many full rotations to perform (typically 5-8 complete spins) plus the precise final angle needed to land on the pre-determined winner.
    3. 3.
      Spin Animation: The wheel spins with an easing function (gradual deceleration) to create anticipation and excitement. The animation is cosmetic—the outcome is already decided randomly.
    4. 4.
      Winner Display: After the animation completes (3-4 seconds), the winner is displayed with celebratory effects (confetti, sound) to create a positive, game-like experience.

    Important note: The animation does not influence randomness. The winner is selected the instant you click, using pure randomization. The spinning animation simply makes the selection process more engaging and transparent—participants can watch the wheel spin rather than seeing an instant result, which builds trust in the fairness of the process.

    Frequently Asked Questions

    Can the wheel be manipulated or rigged?

    No. The selection algorithm is deterministic and based on cryptographic-quality randomization. There are no hidden settings, weighted probabilities, or manipulation capabilities. The code is open to inspection, and each entry has mathematically equal probability regardless of any factors.

    What if the same name keeps winning?

    This is actually evidence of true randomness! Humans tend to perceive random patterns as "non-random" when they see clusters or repetitions. In truly random selection, occasional clustering is mathematically expected. If you want to prevent repeat winners, use the "Remove Winner" feature to exclude already-selected entries from subsequent spins.

    Does position in the list matter?

    No. Whether a name is first, last, or anywhere in the middle makes absolutely no difference to selection probability. The algorithm treats every position identically. There is no advantage to being at the top or bottom of your list.

    How many names can the wheel handle?

    The wheel supports up to 500 entries for optimal performance. The randomization algorithm works equally well with 5 names or 500—each entry maintains equal probability regardless of list size. Very large lists (100+ entries) may have smaller visual segments on the wheel, but selection remains perfectly random.

    Can I verify the randomness myself?

    Yes! Create a wheel with a small number of entries (like 10 names) and spin it 100+ times, recording each result. You should see roughly equal distribution across all entries. Statistical variation is normal and expected—true randomness doesn't mean perfect equality, but over many trials, probabilities converge toward equal distribution.

    Browser Compatibility & Technical Requirements

    NameWheel works on all modern browsers with JavaScript enabled. Supported browsers include:

    • •
      Google Chrome (desktop and mobile)
    • •
      Safari (macOS and iOS)
    • •
      Mozilla Firefox (desktop and mobile)
    • •
      Microsoft Edge
    • •
      Opera and other Chromium-based browsers

    The tool works on smartphones, tablets, laptops, desktops, and interactive whiteboards. No installation, downloads, or special permissions required—just open the website and start using it immediately.

    Learn More