Function polkadot_node_subsystem_util::gen_ratio [−][src]
pub fn gen_ratio(a: usize, b: usize) -> bool
Expand description
Returns a bool
with a probability of a / b
of being true.
pub fn gen_ratio(a: usize, b: usize) -> bool
Returns a bool
with a probability of a / b
of being true.