New Random # in less than 1 sec...?
I read the FAQ and several posts, but can anyone tell me how to generate a random number in less than 1 second? I'm making a game where I need random numbers calculated in less than 1 second and it seems that with Srand(time(NULL)), Randomize(); and rand()%#, it can only get a random number every second. When determining how hard you hit is based on random values and other stats, it sucks getting the same values if you attack twice in less than 1 second and so forth.. Also running into enemies is determined randomly and doing it every second doesn't work cuz you move at least 10 spaces before it determines another number. Anyone help?
Cool, it worked, thanks :)
Hey, Thanks Sorensen, that worked, my comp is fast enough and I thank you all for the help but yeah, I was calling the srand() right before it used rand()% and that was in a loop, Thanks guys!