more useful options | |
PerlMonks |
Adding one last conditional in a random-number guessing gameby Anonymous Monk |
on Feb 22, 2014 at 01:48 UTC ( [id://1075805]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks! I am supposed to write a small script for a random-guessing number between 1-10, which guesses a number, then asks the user for a guess and if the user guesses a lower number or a higher number it keeps asking. My question is, how can I add another requirement, which is that the number the program guesses can't be repeated...? My code is the followind:
Back to
Seekers of Perl Wisdom
|
|