Answers for "rust rand 1 101"

0

rust rand 1 101

use rand::Rng;

fn main() {
    let secret_number = rand::thread_rng().gen_range(1, 101);
    println!("{}", secret_number);
}
Posted by: Guest on June-17-2020

Browse Popular Code Answers by Language