Decision Workspace
weighted_rand vs biased vs loaded_dice
Side-by-side comparison of Rust crates
40
weighted_rand
growingv0.4.2
A weighted random sampling crate using Walker's Alias Method.
48
biased
experimentalv0.1.5
A flexible Rust library for generating biased random numbers over a given integer range. 一个用于在给定整数范围内生成偏向性随机数的灵活 Rust 库。
38
loaded_dice
growingv0.2.2
A simple sampler for loaded dices, implementing the alias method
Core Metrics
| weighted_rand | biased | loaded_dice | |
|---|---|---|---|
| Health Score | 40 | 48 | 38 |
| Total Downloads | 31.1K | 1.6K | 71.6K |
| 30d Downloads | 566 | 40 | 401 |
| Dependents | 11 | 11 | 4 |
| Releases | 8 | 5 | 4 |
| Last Updated | 908d ago | 188d ago | 1259d ago |
| Age | 4y 4m | 6m | 8y 6m |
Health Breakdown
weighted_rand
Maintenance
4
Quality
11
Community
8
Popularity
5
Documentation
12
biased
Maintenance
16
Quality
14
Community
6
Popularity
4
Documentation
8
loaded_dice
Maintenance
3
Quality
16
Community
5
Popularity
6
Documentation
8
Technical Details
| weighted_rand | biased | loaded_dice | |
|---|---|---|---|
| Version | 0.4.2 | 0.1.5 | 0.2.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MulanPSL-2.0 | non-standard |
| Dependencies | 3 | 7 | 1 |
| Crate Size | 16KB | 15KB | 19KB |
| Features | 0 | 1 | 1 |
| Yanked % | 12.5% | 0.0% | 0.0% |
| Edition | 2018 | 2024 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •biased leads with a health score of 48/100, but none of the options score above 80.
- •loaded_dice has the most downloads (71.6K), suggesting wider adoption.
- •⚠ weighted_rand, loaded_dice have not been updated in over a year.