From: William R. B. <bil...@gm...> - 2025-07-17 18:30:24
|
Will do, when I get home. wrb On Thu, Jul 17, 2025, 10:56 AM Tomas Rokicki <ro...@gm...> wrote: > Does anyone here have access to a Windows machine and the Microsoft C++ > compiler (any version)? If you do, would you be willing to run the > following > program and send me the output? It may take a few seconds to run: > > #include <cstdlib> > #include <iostream> > using namespace std; > > int main() { > srand(1); > int g = rand() ; > for (long long cnt=1; ; cnt++) { > int r = rand() ; > if ((r & (r - 1)) == 0) > cout << cnt << " " << r << endl ; > if (r == g) { > cout << cnt << endl ; > exit(0) ; > } > } > } > > Thanks! > > -- > - https://cube20.org/ <http://cube20.org/> - https://golly.sf.net/ > <http://golly.sf.net/> - https://alpha.twizzle.net/ > / - > _______________________________________________ > Golly-test mailing list > Gol...@li... > https://lists.sourceforge.net/lists/listinfo/golly-test > |