blob: c19d9e3ea20b612e2eeb6084b4c7ee356d5af8c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <iostream>
#include <random>
#include <cmath>
int main()
{
std::default_random_engine engine;
std::normal_distribution<> distribution(5000, 50);
const int size = 5000;
std::cout << size << ' ';
std::cout << 6 << '\n';
for (int i = 0 ; i < size; i++)
{
std::cout << std::abs((static_cast<int>(distribution(engine)) % 10000)) << ' ';
}
return 0;
}
|