rustio rustio.net
40

weighted_rand

v0.4.2 Growing

A weighted random sampling crate using Walker's Alias Method.

MIT OR Apache-2.0 Edition 2018
Algorithms #random#method#alias#weighted#walker

Quick Verdict

  • โœ•Not updated for 2+ years
  • !Pre-1.0: API may have breaking changes
  • โœ“Tiny footprint (16KB, 3 deps)
  • โœ“Permissive license (MIT OR Apache-2.0)

Security

Checking security advisories...
Downloads
31.1K
Dependents
11
Releases
8
Size
16KB

Deep Insights

๐Ÿ“ˆ
Strong growth momentum

606 downloads in the last 30 days (20/day), up 26% from the previous period.

๐Ÿ”ฌ
Pre-1.0 for over a year

Despite being 4+ years old, weighted_rand hasn't reached 1.0 yet. Expect potential API changes between versions.

๐Ÿชถ
Minimal dependencies

Only 3 direct dependencies. Lean dependency tree means faster builds and lower supply chain risk.

๐Ÿ“
Compact crate

At 16KB, weighted_rand is lightweight. Small crate size correlates with focused, well-scoped functionality.

โš ๏ธ
Notable yanked versions

13% of releases have been yanked. Check version history before pinning.

๐ŸŒŸ
Used by top crates

Notable dependents include chainfile, fictionary, markov_rs, lindenmayer_graphic, choose-rand. When high-quality crates choose weighted_rand, it's a strong quality signal.

Health Breakdown

Maintenance 4/25

Recency, release consistency, active ratio

Quality 11/25

Yanked ratio, deps, size, maturity, features

Community 8/20

Reverse deps, ownership, ecosystem

Popularity 5/15

Downloads, momentum, growth trend

Documentation 12/15

Docs, repo, license, metadata

Download Trend

Daily downloads ยท last 90 days
17/day avg+45%
05010015012/291/162/32/213/113/28

Top Dependents

Version Adoption

v0.4.2
70%
v0.3.2
13%
v0.4.1
8%
v0.3.1
5%
v0.3.0
4%

Release Timeline

8 releases1 yankedsince 2021
J
F
M
A
M
J
J
A
S
O
N
D
2021
5
2022
2023
3
2024
2025
2026
Less
More|
Yanked

README

Loading README...

Maintainers

Dependencies
3
direct dependencies
Dependents
11
crates depend on weighted_rand

Similar Crates