1234567891011121314151617
#include <iostream> #include <random> int main() { std::random_device rnd; std::mt19937 eng(rnd()); std::uniform_int_distribution<> range(2, 7); for (int i = 0; i < 3; i++) { std::cout << range(eng) << ' '; } system("PAUSE"); return 0; }