I created an mt19937_64
instance with a seed like so;
std::mt19937_64 mt_engine{9156}
What's the difference between using the instance like:
mt_engine()
or just
mt_engine
in code. And when should I use either?
I can't seem to find any material that explains this precisely. All I find on this stuff is either filled with unnecessary information I don't need or math I do not understand at the moment so be of help?
Edit: I'd include code of the two instances
#include <random>
#include <iostream>
int main() {
std::mt19937_64 mt_engine{91586}
std::cout << mt_engine(); // outputs just one long number
std::cout << mt_engine; //outputs sort of like an array of long numbers
}
What's the difference between the two use cases? Thanks.