Skip to main content

config_random_bool

Function config_random_bool 

Source
pub fn config_random_bool(p: f64) -> bool
Expand description

Return true with probability p, drawn from the configuration RNG.

Used for swarm-subset decisions (e.g. “enable this fault family?”). Always consumes exactly one [CONFIG_RNG] draw regardless of the outcome.