rust-random / rand

A Rust library for random number generation.
https://crates.io/crates/rand
Other
1.68k stars 430 forks source link

Add WeightedIndexTree to rand_distr #1372

Closed xmakro closed 9 months ago

xmakro commented 10 months ago

As discussed in https://github.com/rust-random/rand/issues/1053

xmakro commented 9 months ago

Incomplete (haven't fully reviewed code).

Thank you for the review. I addressed all the comments

xmakro commented 9 months ago

Thanks, that is much better, changed to try_sample

dhardy commented 9 months ago

We can ignore the zerocopy failures (bug there which is fixed in a pre-release version).

Thanks for the implementation, @xmakro.