Skip to content

Add API for getting a bool with chance of exactly 1-in-10 or 2-in-3#491

Merged
dhardy merged 1 commit into
rust-random:masterfrom
sicking:gen_ratio
Jun 9, 2018
Merged

Add API for getting a bool with chance of exactly 1-in-10 or 2-in-3#491
dhardy merged 1 commit into
rust-random:masterfrom
sicking:gen_ratio

Implement Rng.gen_ratio() and Bernoulli::new_ratio()

a3a9fc3
Select commit
Loading
Failed to load commit list.

Workflow runs completed with no jobs