Decision Workspace
random-integer vs random-number vs random-number-macro-impl
Side-by-side comparison of Rust crates
43
random-integer
growingv1.2.1
Generate a random integer between two integer numbers (including the two integer numbers).
56
random-number
growingv0.1.10
Generate random numbers quickly.
54
random-number-macro-impl
growingv0.1.9
Generate random numbers quickly.
Core Metrics
| random-integer | random-number | random-number-macro-impl | |
|---|---|---|---|
| Health Score | 43 | 56 | 54 |
| Total Downloads | 36.2K | 1.7M | 1.7M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 11 | 68 | 11 |
| Releases | 10 | 11 | 10 |
| Last Updated | 2313d ago | 93d ago | 93d ago |
| Age | 8y 1m | 6y 4m | 6y 4m |
Health Breakdown
random-integer
Maintenance
5
Quality
16
Community
8
Popularity
5
Documentation
9
random-number
Maintenance
12
Quality
15
Community
10
Popularity
7
Documentation
12
random-number-macro-impl
Maintenance
12
Quality
15
Community
8
Popularity
7
Documentation
12
Technical Details
| random-integer | random-number | random-number-macro-impl | |
|---|---|---|---|
| Version | 1.2.1 | 0.1.10 | 0.1.9 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | MIT | MIT |
| Dependencies | 1 | 3 | 3 |
| Crate Size | 4KB | 6KB | 4KB |
| Features | 0 | 0 | 0 |
| Yanked % | 10.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | — | 1.61 | 1.61 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •random-number leads with a health score of 56/100, but none of the options score above 80.
- •random-number-macro-impl has the most downloads (1.7M), suggesting wider adoption.
- •⚠ random-integer has not been updated in over a year.
- •random-number, random-number-macro-impl are pre-1.0 — API may change.