#include <iostream>
#include <time.h>
#include <stdlib.h>
#include <fstream>
using namespace std;

int main() {
  srand(time(NULL));
  fstream ofstream, ifstream;
  ofstream.open("C:/Users/Classroom/Desktop/test.txt");


  if(!ofstream) {
    cerr << "FILE NOT FOUND" << endl;
  }

  for (int i = 0; i < 100; i++) {
    ofstream << "IP: " << rand()%255 << "."
    			<< rand()%255 << "."
			<< rand()%255 << "."
			<< rand()%255 << endl;
  }

  ofstream.close();
  return 0;
}
