jeudi 13 mai 2021

How are random numbers generated in C(rand function)?

The classic way to generate random numbers in C is:

srand(time(NULL));
int rand = rand();

I want to know the algorithm behind the pseudo random number generation. How does the rand() function work?




Aucun commentaire:

Enregistrer un commentaire