mardi 18 octobre 2022

What is the PRNG behind C++'s rand() function? [duplicate]

I don't know if this question makes sense, but for example, python's random module has the Mersenne Twister 19937 as the PRNG behind it.

What would be the equivalent for C++'s random function?

edit: I know not to use the rand() function, I'm just running some test and was wondering if there was such a thing, or if it just is a LCG.




Aucun commentaire:

Enregistrer un commentaire