#include #include //for the iomanipulator setw #include #include //for the function time #include "myrandom.h" using namespace std; int main() { const time_t t {time(nullptr)}; //number of seconds since Jan 1 1970 const long unsigned lu {static_cast(t)}; myrandom r1 {1}; myrandom r2 {lu}; cout << " r1 r2\n" << " -- --\n"; //When you write r1(), //the computer behaves as if you'd written r1.operator() for (int i {0}; i < 10; ++i) { cout << setw(2) << i << " " << setw(5) << r1() << " " << setw(5) << r2() << "\n"; } return EXIT_SUCCESS; }