Function cs_utils::random_bool
source · [−]pub fn random_bool() -> boolExpand description
Generate a random boolean.
Examples
use cs_utils::random_bool;
if random_bool() {
println!("\"true\" value generated");
} else {
println!("\"false\" value generated");
}