I am trying to make a random number generator (as the title says) but whenever I try something with an integer, it returns the same number. Here is some code that apparently works. (uses the header and everything else)
default_random_engine e;
cout << e<< endl;
but when i try it, I will only get the number 1. I have tried this with the mac terminal, clion, and Visual Studio. I really don't know what to do.
Aucun commentaire:
Enregistrer un commentaire