Macro test_data_generation::random_percentage [−][src]
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);