[package] name = "random-picker" version = "0.2.3" authors = ["wuwbobo2021 "] edition = "2021" license = "MIT OR Apache-2.0" repository = "https://github.com/wuwbobo2021/random-picker" readme = "README.md" description = """ 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. """ keywords = ["random", "benchmark", "draw", "lot"] categories = ["command-line-utilities", "algorithms"] [dependencies] rand = "0.8.5" serde = { version = "1.0", features = ["derive"], optional = true } [features] serde-config = ["dep:serde"] [profile.release] opt-level = 3 lto = true [lib] name = "random_picker" path = "lib.rs" [[bin]] name = "random-picker" path = "main.rs"