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