#include <iostream>
#include <random>
#include <ctime>
int main()
{
// no access to hardware on IDEone, will use time instead
// std::random_device rd;
// std::mt19937 rng(rd());
std::mt19937 rng(std::time(NULL));
std::uniform_int_distribution<> range1(10, 15);
for(int n = 0; n < 20; ++n)
std::cout << range1(rng) << ' ';
std::cout << '\n';
std::uniform_real_distribution<> range2(1.5, 1.8);
for(int n = 0; n < 10; ++n)
std::cout << range2(rng) << ' ';
std::cout << '\n';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8cmFuZG9tPgojaW5jbHVkZSA8Y3RpbWU+CgppbnQgbWFpbigpCnsKLy8gbm8gYWNjZXNzIHRvIGhhcmR3YXJlIG9uIElERW9uZSwgd2lsbCB1c2UgdGltZSBpbnN0ZWFkCi8vICAgIHN0ZDo6cmFuZG9tX2RldmljZSByZDsKLy8gICAgc3RkOjptdDE5OTM3IHJuZyhyZCgpKTsKICAgIHN0ZDo6bXQxOTkzNyBybmcoc3RkOjp0aW1lKE5VTEwpKTsKCiAgICBzdGQ6OnVuaWZvcm1faW50X2Rpc3RyaWJ1dGlvbjw+IHJhbmdlMSgxMCwgMTUpOwoKICAgIGZvcihpbnQgbiA9IDA7IG4gPCAyMDsgKytuKQogICAgICAgIHN0ZDo6Y291dCA8PCByYW5nZTEocm5nKSA8PCAnICc7CiAgICBzdGQ6OmNvdXQgPDwgJ1xuJzsKCiAgICBzdGQ6OnVuaWZvcm1fcmVhbF9kaXN0cmlidXRpb248PiByYW5nZTIoMS41LCAxLjgpOwogICAgZm9yKGludCBuID0gMDsgbiA8IDEwOyArK24pCiAgICAgICAgc3RkOjpjb3V0IDw8IHJhbmdlMihybmcpIDw8ICcgJzsKICAgIHN0ZDo6Y291dCA8PCAnXG4nOwp9Cg==