for(;;) { WaitForSingleObject(какой то поток...,INFINITE); Sleep(10000); }
#include <iostream> #include <cstdlib> using namespace std; int main() { int R; R = rand(); return 0; }