GitShow/sindresorhus/random-int
sindresorhus

random-int

Generate a random integer

by sindresorhus
Star on GitHubForknpm

JavaScript

91 stars16 forks4 contributorsQuiet · 11mo agoSince 2015v3.1.0MIT

Meet the team

See all 4 on GitHub →
sindresorhus
sindresorhus14 contributions
arturz
arturz1 contribution
BendingBender
BendingBender1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript92.1%
TypeScript7.9%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
UltiRequiem
Check if `minimum` is bigger than `maximum` / `maximum` smaller than `minimum`ClosedIssue

Always gives a 6/7/8/9, which is understandable, but not what I expected. I did a simple check for all the possible results like:

UltiRequiem · 11mo ago
mfulton26
biased random integersClosedIssue

I can't tell but I believe this applies. Won't provide biased numbers? Refs: Aaron Toponce : Why The "Multiply and Floor" RNG Method Is Biased ckknight/random-js: A mathematically correct random number generator library for JavaScript.

mfulton26 · 4y ago
ujwal-setlur
Pure ESM breaks CommonJS projectsClosedIssue

I have a Typescript project that uses `` can't get "imported" under this scenario. Any suggestions on this? Thanks.

ujwal-setlur · 5y ago
Structured data for AI agents

Repository: sindresorhus/random-int. Description: Generate a random integer Stars: 91, Forks: 16. Primary language: JavaScript. Languages: JavaScript (92.1%), TypeScript (7.9%). License: MIT. Latest release: v3.1.0 (11mo ago). Open PRs: 0, open issues: 0. Last activity: 11mo ago. Community health: 71%. Top contributors: sindresorhus, arturz, BendingBender, Richienb.

·@ofershap

Replace github.com with gitshow.dev