#include #include //for the i/o manipulator 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 unsigned int seed {static_cast(t)}; myrandom r {1}; //or use seed instead of 1 for (int i {0}; i < 10; ++i) { cout << i << " " << setw(5) << r.rand() << "\n"; } return EXIT_SUCCESS; }