Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
TexanDoomGuy authored Jan 29, 2025
1 parent 4f18ec1 commit 7d1591b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::io;
fn main() {
println!("Guess the number!");

let secret_number = rand::thread_rng().gen_range(1..=100);
let secret_number = rand::rng().random_range(1..=100);

// ANCHOR: here
loop {
Expand Down

0 comments on commit 7d1591b

Please sign in to comment.