blob: 0eeadd1cedb4a33a355dd45f8a6f0d65e48b22b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <iostream>
#include <random>
using std::cout;
int main() {
std::default_random_engine engine(std::random_device{}());
std::uniform_int_distribution<int> distribution(1, 5000);
const int SIZE = 5000;
cout << SIZE << '\n';
for (int i = 0; i < SIZE; i++) {
cout << distribution(engine) << ' ';
}
return 0;
}
|