Closed Sourcemancien closed 1 year ago
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); }
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); }