I am in my first couple months of learning python in college. I am trying to figure out how to generate a random number I click and show it on the screen in pygame, however because my game is in a while true sort of loop, it generates a new number every frame, and I would like it to choose one number each time. I have gotten it to choose one number and print it each time, but the problem is that it is the same number.
Aucun commentaire:
Enregistrer un commentaire