12345678910111213141516171819202122 |
- /*
- * Outputs random 100-digits binary string mostly containing 0's.
- * In average it contrains only 10% of 1's.
- *
- * To generate different values, call "bgen.exe" with different parameters.
- *
- * 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("[0000000001]{100}") << endl;
- return 0;
- }
|