use rand::RngExt;let mut rng = rand::rng();let random = rng.random_range(0..3);//random is 0, 1 or 2 println!("random is {random}");