📅  最后修改于: 2022-03-11 14:49:25.850000             🧑  作者: Mango
use rand::Rng; // 0.8.0
fn main() {
// Generate random number in the range [0, 99]
let num = rand::thread_rng().gen_range(0..100);
println!("{}", num);
}