Skip to content
JS
Package

math-random

math-random is an isomorphic, drop-in replacement for `Math.random` that uses cryptographically secure random number generation, where available

v2.0.1, 7 Aug 2020CC0-1.0CommonJSTypes: None
$ npm install math-random

Key numbers

As of 25 Sept 2026
Weekly downloads
2.2m
-18% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
6 years ago
v2.0.1
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3m4mSept 2025Mar 2026Sept 2026High 3.4m (25 Nov 2025)Low 1.2m (1 Sept 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

2,183,634 downloads last week, 8,157,263 in the last month. The 12-month change of -18% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
07 in total
Latest version
2.0.1, 7 Aug 20206 years ago
First published
13 Jul 2017
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

  1. v2 first release 2.0.0, 17 Jul 2020
  2. v1 first release 1.0.0, 13 Jul 2017

Recent releases

VersionPublished
2.0.17 Aug 2020
2.0.017 Jul 2020
1.0.415 Jan 2019
1.0.315 Jan 2019
1.0.213 Jan 2019
1.0.113 Jul 2017
1.0.013 Jul 2017
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
1.5 kB
Dependencies (0)
None
npm install math-random
  • jsDelivrhttps://cdn.jsdelivr.net/npm/math-random@2.0.1/
  • unpkghttps://unpkg.com/math-random@2.0.1/
  • esm.shhttps://esm.sh/math-random@2.0.1
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.