/* * Outputs random 100-digits binary string mostly containing 0's. * In average, it contains 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" using namespace std; int main(int argc, char *argv[]) { registerGen(argc, argv, 1); println(rnd.next("[0000000001]{100}")); }