I am trying to create a random number generator using time as the seed, but it seems that the time function I am using just uses seconds. Is there any way for me to use milisecs?
Here is a snippet of the code I am using:
y = rand();
Anything I can do? Is there a better way to generate a random number? I eventually only want a 1 or a 0 (I am mod-ing by 2 and if the random number is even, then I make it a 1, etc...)