#include <iostream>
#include <random>
#include <ctime>
int main()
{
    //std::random_device seed;
    //std::mt19937 rnd(seed()); // no access to hardware on ideone
    std::mt19937 rnd(std::time(NULL));
    std::uniform_real_distribution<> d(1, 2);

    for(int n = 0; n < 10; ++n)
        std::cout << d(rnd) << ' ';
    std::cout << '\n';
}
