As you can only have 10 games, create an array with the numbers 1 to 10, shuffle it, see List::Util, and then pop the numbers to be guessed
In reply to Re^5: Adding one last conditional in a random-number guessing game
by hdb
in thread Adding one last conditional in a random-number guessing game
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |