blob: 039ca048d2c77b17c19cc9674abdd083af06d2a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <algorithm>
#include <iostream>
#include <random>
const int kNumberCount = 1000;
const int kChooseCount = 200;
int main() {
std::random_device random_device;
auto random = std::default_random_engine{random_device()};
std::uniform_int_distribution<int> distribution{0, 200000};
std::cout << kNumberCount << ' ' << kChooseCount << "\n";
for (int i = 0; i < kNumberCount; i++) {
std::cout << distribution(random) - 100000 << "\n";
}
return 0;
}
|