dimanche 28 juin 2020

Why is rand() (and many other default random number generators) designed so badly?

It's often said that one should never use rand() in C, and similar statements are made for many of the default random number generators in other languages, but why were they designed like this?

To clarify, I do not mean what are the problems with them, but why were they designed in a way that is poor enough that many people say they should never be used?




Aucun commentaire:

Enregistrer un commentaire