/********************************************************************************************
genrand.cpp
Jim Millard
for CO311
Generate a file full of random numbers
********************************************************************************************/
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
#include <time.h>
void main()
{
time_t t;
srand((unsigned) time(&t));
// srand(1); // use this for debugging ONLY
ofstream fout("c:\\temp\\co311\\randoms.txt");
int NewNumber;
for (int i = 0; i < 200 ; i++)
{
NewNumber = rand();
fout << NewNumber%1000 << endl;
}
}