zeh

zeh/prando

Deterministic pseudo-random number generator for JavaScript and TypeScript

JavaScript
142
7
MIT License

Prando is a deterministic pseudo-random number generator for JavaScript and TypeScript that creates reproducible sequences of random numbers from a given seed. It's designed for scenarios like games and UI components where consistent randomness is needed across renders, using a xorshift algorithm that produces a period of 2^29-1 before repeating. The library is ideal for developers needing predictable random sequences in their applications, with features like number generation, string creation, and array item selection.

Total donated
Undistributed
Share with your subscribers: