#include <iostream>#include <bitset>#include <ctime>using std::cout; using std::endl;using std::srand; using std::rand;using std::bitset; using std::time;int main(){ const int columns = 5; // seeds the random number generator based on system time. srand((unsigned) time(0)); // the size of numbers output by rand() (compiler/architecture specific). const int bits = (sizeof(RAND_MAX)*8)-1; while (true) { for (int i=0; i<columns; i++) { cout << " " << bitset<bits>(rand()); } cout << endl; }}