Skip to content
W. "Mac" McMeans edited this page Feb 12, 2022 · 1 revision

Alea is a pseudo-random number generator (PRNG) created by Johannes Baagøe. It implements his variation on Marsaglia's Multiply-with-carry theme, adapted to javascript's quaint notion of numbers: the carries are exactly the integer parts of Numbers with exactly 32 bits of fractional part. Use Alea to quickly generate random numbers with good statistical properties. NOTE: This generator is not cryptographically secure. If you need a secure generator then consider ISAAC for your application; a fast, long-period generator and discrete message cipher.

Clone this wiki locally