Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels