bin+lib random-picker

Generates random choices based on the weight table of probabilities. It can be used to calculate each item's probability of being picked up when picking a given amount of non-repetitive items, or to compare the speed of OS random source with that of the CSPRNG.

3 releases

new 0.2.2 Oct 13, 2024
0.2.1 Oct 11, 2024
0.2.0 Oct 8, 2024

#1128 in Command line utilities

Download history 25/week @ 2024-10-02 472/week @ 2024-10-09

497 downloads per month

MIT/Apache

35KB
698 lines

random-picker

Generates random choices based on the weight table of probabilities. It can be used to calculate each item's probability of being picked up when picking a given amount of non-repetitive items (multi-thread), or to compare the speed of OS random source with that of the CSPRNG.

Documentation: https://docs.rs/random_picker/latest.

Current version of this program is able to load table files created by the old C++ version, just for comparing their behaviors.

This crate is looking for new maintainers having more knowledge and interests in this topic.


lib.rs:

Generates random choices based on the weight table of probabilities. It can be used to calculate each item's probability of being picked up when picking a given amount of non-repetitive items, or to compare the speed of OS random source with that of the CSPRNG.

Dependencies

~240–475KB