I want to create a number between 1-10000.
#include <stdio.h>
#include <stdlib.h>
int main() {
int numb;
srand(time(NULL));
numb = (rand()%9999)+1;
printf("%d", numb);
}
But for some reason, it generates the numbers so slowly. I mean, let's say I ran the program. It gives me a "1145" after a second, I ran it again and it says "1151"... 5 seconds later, it says "1211"
as you can see, they are really close numbers. I want it to change so fast. If I use it 5 times in 5 seconds, I want numbers like 49, 1124, 6665, 9000, 140 etc...
What can I do to make this happen? Sorry for English and thanks in advance...