pure-rand provides fast, pure, and reproducible pseudo-random number generators (PRNGs) in JavaScript. Unlike Math.random(), its algorithms are deterministic, making it ideal for simulations, testing, and applications requiring consistent random sequences. Offering high performance and a variety of PRNG algorithms, including xorshift128plus and WELL512a, pure-rand ensures predictable behavior across platforms and avoids seeding issues inherent in standard random number generators. It promotes functional programming principles with immutable states, simplifying debugging and enhancing code reliability.
Pure-rand's release frequency has varied significantly since March 2018. It had bursts of activity, particularly in late 2018 and late 2020, with periods of no releases. There was consistent activity in 2023, followed by a lull and a return to releases in February 2025. The latest versions are 7.0.0 and 7.0.1.
Pure-rand npm package downloads show a consistent upward trend from March 2024 to August 2025, ranging from 41 million to over 104 million monthly downloads. September 2025 shows a steep decline to 17 million, but this data is incomplete as the month is ongoing.