//srand.cc // //This program produces as many rn's as you want with the srand() function, //writes them into a filename of your choice.. #include #include #include #include main() { int howmany; char filename[1024]; srand(time(NULL)); cout << "How many RN's to create : "; cin >> howmany; cout << "Enter filename to output to : "; cin >> filename; ofstream fout(filename); if (!fout) { cerr << "Error opening output filestream " << filename << endl; exit(1); } for ( int i=0 ; i