Andrew Healey 7/12/2020

Creating Randomness Without Math.random

Read Original

This technical article explains how to create custom random number generators in JavaScript, detailing pseudorandom number generators (PRNGs), seeding, and deterministic sequences. It covers the ECMAScript specification for Math.random(), provides code examples including a hash function from a Chrome benchmark, and discusses use cases like reproducible client-side events.

Creating Randomness Without Math.random

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week