sindresorhus

unique-random

Generate random numbers that are consecutively unique

by sindresorhus

JavaScript

JavaScript91.8%
TypeScript8.2%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

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

(theoretically) If they are equal then the previous value will always be the same, so the program enters an infinite loop. I think it is a better fix to make it work with only one number anyways, as opposed to throwing an error since this could happen if min and max are generated by another source.

Richienb · 2y ago
Structured data for AI agents

Repository: sindresorhus/unique-random. Description: Generate random numbers that are consecutively unique Stars: 119, Forks: 16. Primary language: JavaScript. Languages: JavaScript (91.8%), TypeScript (8.2%). License: MIT. Latest release: v4.0.0 (2y ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, Richienb, aweary, BendingBender.