#include <algorithm>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <random>
#include <vector>
int main() {
std::vector<int> values(100);
std::iota(values.begin(), values.end(), 1);
std::shuffle(values.begin(), values.end(), std::mt19937(2));
std::vector<int> selected_values;
std::copy_if(values.begin(), values.end(),
std::back_inserter(selected_values),
[](int value) { return value % 2 == 0; });
int count = 0;
for (auto value: selected_values) {
std::cout << std::setw(4) << value;
if (++count % 10 == 0) std::cout << std::endl;
}
}