Original Post
Is there a way to srand() based on microtime? I have:
if(varMax > 0){
srand(time(NULL));
// calc a random variable set number between 0 and varMax.
this->page[iCount]->m_varSet = ((rand() % varMax)+1);
}else{
}
However, this is in a program that can have new processes spawned with only a milliseconds difference in time, the problem is that m_varSet is always choosing the same number between multiple processes because of this time issue, so how does srand(time(NULL)) seed, seconds? TIA.