What is the difference between time(NULL) and time(0) in random number generation
When we set a seed to generate a random number in C/C++, we used to give the argument as time(NULL) or time(0) as srand(time(NULL)). What is the exact difference between these two? are they internally different or is there any other difference?
Aucun commentaire:
Enregistrer un commentaire