I am creating a random guessing game in which I need to generate an input 6 times. I know how to generate a random number but I don't know how to generate a random input so that the game plays itself 6 times before you lose, or in this case the computer loses because it's playing itself.
Basically a a random number is generated and the user inputs a guess. The user gets 6 tries. Then I was tasked with having the computer generate a number 6 times with no user input. My class mate helped me figure it out though. I just made the variable guess = the random number function. I don't entirely understand this but he helped so I'm good now thanks.