Compare commits

..

4 Commits

Author SHA1 Message Date
Literally A Penguin
18800b55df
Random number generator now spawns bee's 2024-09-25 18:15:43 -05:00
Literally A Penguin
a84b085a2d
Update main.rs 2024-09-25 18:15:21 -05:00
Literally A Penguin
dbb73578f8
random number generator 2024-09-25 18:09:50 -05:00
Literally A Penguin
ac242b35b8
Create random number generator 2024-09-25 18:08:54 -05:00
2 changed files with 18 additions and 0 deletions

7
Cargo.toml Normal file
View File

@ -0,0 +1,7 @@
[package]
name = "random"
version = "0.1.0"
edition = "2021"
[dependencies]
rand = "0.8"

11
src/main.rs Normal file
View File

@ -0,0 +1,11 @@
use rand::Rng;
fn main() {
println!("How many bees will you get?");
println!("Guess your answer");
println!("That was wrong, dipshit");
let num = rand::thread_rng().gen_range(0..100);
print!("The amount of bees you get: ");
println!("{}", num);
}