programming challenge 21 random number guessing game enhancement one w
Search for question
Question
Programming Challenge: 21 - Random Number Guessing Game Enhancement One way to create a pseudo-random three digit number (and we are including one- and two-digit numbers as well) is rand ()
$1000. That gives numbers from 000 to 999, which is just what we want. As specified, have the program tell the player how many guesses were used. A good player should always be able to find a three-digit number in ten or fewer guesses.