I'm talking about C programming here by the way.
I'm just curious to know how you all generate random numbers, since there are alot of ways to do it, just no direct ways. Personally, I call the srand() function and pass it a value returned from time() in the time.h library.
Masses: Huh?
I use time() to get a different number for every second, then give that number to srand() which turns it into a random number.
Masses: Oh... Huh?
I'm just curious to know how you all generate random numbers, since there are alot of ways to do it, just no direct ways. Personally, I call the srand() function and pass it a value returned from time() in the time.h library.
Masses: Huh?
I use time() to get a different number for every second, then give that number to srand() which turns it into a random number.
Masses: Oh... Huh?