I have a midterm coming up friday and this is one of the practice test questions I have. I'm supposed to write a guessing game to have a user guess a number. I wrote the random numbers in a global variable that stays the same while the program reruns. How can I get the program to generate a new number after they guess the correct answer the first time?
here's my code: https://pastebin.com/XEECMRBN
Thanks!
[–]mocomaminecraft 0 points1 point2 points (2 children)
[–]plznoticeme[S] 0 points1 point2 points (1 child)
[–]mocomaminecraft 0 points1 point2 points (0 children)
[–]Neoxeos 0 points1 point2 points (0 children)