/* This is a program to create random numbers.*/
//#include "stdafx.h"
#include <iostream>
#include <iomanip>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <ctime>
using std::ios;
using std::ofstream;
using std::ifstream;
using std::cout;
using std::cin;
// Next the variables.
long dart = 0;
long arrow = 0;
long spitball = 0;
long Randy = 0;
long main (long)
{
// We start the random number catalogue.
srand(time(0));
dart = 201.
while (dart > 200)
{
cout << "\n Hey there surgar dumplin'. ";
cout << "\n How many numbers do you want? Try to keep it uner 200. \n\n";
cin >> dart;
}
cout << "\n What should the largest number be? \n";
cin >> arrow;
cout << "\n";
ofstream Fido("C:\\Fido",ios :: out);
while(dart>0)
{
Randy = rand();
spitball = Randy % arrow;
spitball = spitball++;
cout << spitball << ", ";
dart = dart -1;
Fido << " " << spitball;
}
cout << "\n\n";
cout << " I saved a copy for you on C drive under Fido. Was it good for you? How did I rate on 1 to 10?\n\n";
cin >> dart;
return 0;
}