samedi 11 juillet 2020

Alternatives to time(NULL) for srand() seed? [duplicate]

I am currently using the rand() function to get random numbers. I make the seed like this: srand(time(NULL)) but since I need to rapidly generate a lot of random numbers really fast, I cannot use time(NULL) as my seed. Are there any alternatives?




Aucun commentaire:

Enregistrer un commentaire