referrerpolicy=no-referrer-when-downgrade
polkadot_node_subsystem_util

Function gen_ratio_rng

Source
pub fn gen_ratio_rng<R: Rng>(a: usize, b: usize, rng: &mut R) -> bool
Expand description

Returns a bool with a probability of a / b of being true.