// WriteRandom.cpp // tom bailey 8 sep 08 // Write a file of random numbers. // The filename, number of numbers, and number range // are entered by the user. #include using std::string; #include using std::cout; using std::cin; using std::endl; #include using std::ofstream; #include int main() { string filename; cout << "Enter file name: "; cin >> filename; ofstream outfile( filename.c_str() ); int n = 0; int low = 0; int high = 0; cout << "Enter number of numbers to write: "; cin >> n; cout << "Enter range (low, high): "; cin >> low >> high; for( int i=0; i