From: Tomas R. <ro...@gm...> - 2025-07-17 17:56:28
|
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/ / - |