Learning Rust sm h

This commit is contained in:
Ben
2020-01-08 00:00:49 +00:00
parent eab1522b1a
commit 69d7330225
3 changed files with 101 additions and 3 deletions

View File

@@ -1,6 +1,16 @@
use std::io;
use rand::Rng;
fn main()
{
println!("Hello, world!");
// let mut x = String::new();
// io::stdin().read_line(&mut x)
// .expect("Failed to read line");
let x = rand::thread_rng().gen_range(1, 101);
println!("{}", x);
}