Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- using namespace std;
- int main()
- {
- ofstream output;
- output.open("output.txt");
- srand(time(0));
- for (int i = 0; i < 100000; i++)
- {
- output << rand() % 10000 << endl;
- }
- output.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement