macro_rules! random_percentage {
( $( $x:expr ),* ) => { ... };
}
Expand description
This macro generates a random number between 0 and 100. Returns a f64.
ยงExample
let rnd: f64 = random_percentage!();
println!("Your random number is {}", rnd);