-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrandom.cpp
47 lines (43 loc) · 787 Bytes
/
random.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <complex>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <limits.h>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#include <fstream>
#include <iostream>
#include <time.h>
#include <random>
using namespace std;
#define LL long long int
int main(){
std::ofstream fobj("inputMatrix2.txt");
long long int n;
cin >> n;
fobj << n;
srand(time(NULL));
for(LL i=0;i<2;i++){
fobj << "\n";
for(LL i=0;i<n;i++){
for(LL j=0;j<n;j++){
fobj << rand()%100000 << " ";
}
fobj << "\n";
}
}
return 0;
}