#include
#include
#include
#include
#include
int main()
{
std::random_device random;
std::default_random_engine generator(random());
std::uniform_int_distribution dist(-100, 100);
std::array A;
std::array B;
std::array C;
std::for_each(A.begin(), A.end(), [&generator, &dist](auto& var)
{
var = dist(generator);
});
std::for_each(B.begin(), B.end(), [&generator, &dist](auto& var)
{
var = dist(generator);
});
std::for_each(C.begin(), C.end(), [&generator, &dist](auto& var)
{
var = dist(generator);
});
std::copy(A.begin(), A.end(),
std::ostream_iterator(std::cout, " "));
std::cout
std::copy(B.begin(), B.end(),
std::ostream_iterator(std::cout, " "));
std::cout
std::copy(C.begin(), C.end(),
std::ostream_iterator(std::cout, " "));
std::cout
std::setlocale(LC_ALL, "Russian");
std::cout
std::cout
std::cout
std::system("PAUSE >> void");
return 0;
}