1
0

igen.cpp 517 B

123456789101112131415161718192021
  1. /*
  2. * Outputs random number between 1 and 10^6, inclusive.
  3. * To generate different values, call "igen.exe" with different parameters.
  4. * For example, "igen.exe 1" returns 504077, but "igen.exe 3" returns 808747.
  5. *
  6. * It is typical behaviour of testlib generator to setup randseed by command line.
  7. */
  8. #include "testlib.h"
  9. #include <iostream>
  10. using namespace std;
  11. int main(int argc, char* argv[])
  12. {
  13. registerGen(argc, argv, 1);
  14. cout << rnd.next(1, 1000000) << endl;
  15. return 0;
  16. }