Skip to content

Instantly share code, notes, and snippets.

View keithkml's full-sized avatar

Keith Lea keithkml

View GitHub Profile
@keithkml
keithkml / FastRandom.js
Created May 2, 2017 18:38
Fast random number generator
/**
* An extremely fast pseudorandom number generator. Note that we are using
* this class to REPLACE Math.random :)
*
* Thanks to Doug Lea for help with this :)
*/
export class FastRandom {
private next;
/**
Verifying that "keithl.id" is my Blockstack ID. https://onename.com/keithl