EvoloZz
28th November 2012, 18:31
Its kinda annoying when rand() function always gives 41 as a random number, and if I for example have
while(i<5) (list of 5 random numbers), the numbers are always: 41, 18467, 6334, 26500, 19169. Here is the whole thing:
int i=0;
while(i<5){
printf("%d\n", rand());
i++;
}
So I want the program to truly generate random numbers not same numbers everytime -.-
Thanks for help already.
~EvoloZz
while(i<5) (list of 5 random numbers), the numbers are always: 41, 18467, 6334, 26500, 19169. Here is the whole thing:
int i=0;
while(i<5){
printf("%d\n", rand());
i++;
}
So I want the program to truly generate random numbers not same numbers everytime -.-
Thanks for help already.
~EvoloZz