igen.cpp 471 B

1234567891011121314151617
  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. using namespace std;
  10. int main(int argc, char *argv[]) {
  11. registerGen(argc, argv, 1);
  12. println(rnd.next(1, 1000000));
  13. }