blob: c74d96d487875c10d808ace386fa93d37d312360 (
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 = 100;
const int kChooseCount = 40;
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;
}
|