June 2020
Intermediate to advanced
404 pages
8h 46m
English
rand = "0.6"
Then, add this code to the main.rs file:
use rand::prelude::*;fn main() { let mut rng = thread_rng(); let mut numbers = vec![]; for _ in 0..10 { numbers.push(rng.gen_range(100_f32, 400_f32)); } println!("{:?} ", numbers)}
Read now
Unlock full access