---
title: "Discussion on \"Web Crypto vs Math.random(): Fair Draws in the Browser\" | Hashnode"
description: "Discussion on \"Web Crypto vs Math.random(): Fair Draws in the Browser\". Rejection sampling, elimination mode, and why your giveaway picker needs a real random source."
url: "https://hashnode.com/posts/web-crypto-vs-math-random-fair-draws-in-the-browser/6afbc2517eedbe00393f3337"
---

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

Discussion

# [Web Crypto vs Math.random(): Fair Draws in the Browser](https://toolkitloop.hashnode.dev/web-crypto-vs-math-random-fair-draws-in-the-browser?utm_source=hashnode&utm_medium=feed)

Rejection sampling, elimination mode, and why your giveaway picker needs a real random source.

5d ago · 5 min read · toolkitloop.hashnode.dev  
Read the article

-   [#webdev](https://hashnode.com/tag/webdev)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#productivity](https://hashnode.com/tag/productivity)

## Written by

[bowen Tse](https://hashnode.com/@bowentse)

@bowentse

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

Founder of ToolkitLoop (toolkitloop.com) — 30 free online tools that run 100% in your browser. No sign-ups, no uploads, private by design.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
