---
title: "Discussion on \"Fair random picks in the browser: rejection sampling, a wheel that decides first, and links that redraw\" | Hashnode"
description: "Discussion on \"Fair random picks in the browser: rejection sampling, a wheel that decides first, and links that redraw\". What `Math.random() * n` gets wrong, and the small helper four of my tools now share"
url: "https://hashnode.com/posts/fair-random-picks-in-the-browser-rejection-sampling-a-wheel-that-decides-first-and-links-that-redraw/6af098dde891fd051beb659b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fair random picks in the browser: rejection sampling, a wheel that decides first, and links that redraw](https://vintage97hashnodedev.hashnode.dev/fair-random-picks-in-the-browser-rejection-sampling-a-wheel-that-decides-first-and-links-that-redraw?utm_source=hashnode&utm_medium=feed)

What \`Math.random() \* n\` gets wrong, and the small helper four of my tools now share

Nov 8 · 5 min read · vintage97hashnodedev.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#security](https://hashnode.com/tag/security)
-   [#algorithms](https://hashnode.com/tag/algorithms)

## Written by

[JK](https://hashnode.com/@xsoft)

@xsoft · Seoul / KR

  
[View profile](https://hashnode.com/@xsoft)

developer

Solo founder, B2B SaaS, building AI Agent Control Framework

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
