referrerpolicy=no-referrer-when-downgrade

Function polkadot_node_subsystem_util::gen_ratio

source ·
pub fn gen_ratio(a: usize, b: usize) -> bool
Expand description

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