But Repl.it does not allow us to use external crates! So let's find a workaround using time and math:
use std::time::{SystemTime, UNIX_EPOCH};let nanos =SystemTime::now().duration_since(UNIX_EPOCH).unwrap().subsec_nanos();let secret_number = nanos /13000000;
It's not perfect, but it'll get us a pseudorandom number that will generally be between 1 and 100. One last thing: right now, we are printing our secret number! Where's the fun in that? Let's remove that line and now our guessing game is complete: