You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This part is somewhat confusing: let secret_number = (rand::random::<int>() % 100i) + 1i;
My suggestion is: either mention that rand::random::<int>() samples the whole range of int and you use modulo to narrow the range. Or use the std::rand::distributions::Range function. This way you also don't get modulo bias.