I'm trying to get my game to pick a number between 1 and 6 every 2 seconds. How would I do this?
I have the random.randrange(1,6)
and pygame.time.set_timer(USEREVENT + 1, 1000)
but I don't know how to connect them in any way. So far it just generates random numbers every tick.
Can I have some suggestions on how to do this?
Thanks.