Skip to content

Instantly share code, notes, and snippets.

Avatar

Nathan Kallman kallmanation

View GitHub Profile
@blixt
blixt / prng.js
Last active Sep 12, 2022
A very simple, seedable JavaScript PRNG. NOTE: Please read comments on why this is not a good choice.
View prng.js
// NOTICE 2020-04-18
// Please see the comments below about why this is not a great PRNG.
// Read summary by @bryc here:
// https://github.com/bryc/code/blob/master/jshash/PRNGs.md
// Have a look at js-arbit which uses Alea:
// https://github.com/blixt/js-arbit
/**