Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <time.h>
  6.  
  7. using namespace std;
  8.  
  9. int main()
  10. {
  11.     ofstream output;
  12.     output.open("output.txt");
  13.  
  14.     srand(time(0));
  15.  
  16.     for (int i = 0; i < 100000; i++)
  17.     {
  18.         output << rand() % 10000 << endl;
  19.     }
  20.  
  21.     output.close();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement