#include <random>
#include <iostream>
using namespace std;
void DisplaySix(unsigned char iNumber)
{
unsigned int iDisplay;
default_random_engine engine;
uniform_int_distribution<int>distribution(1,6);
do
{
iDisplay=distribution(engine);
cout << iDisplay;
cout << "\n";
iNumber--;
}
while(iNumber>0);
return;
}
int main()
{
DisplaySix(10);
}
I2luY2x1ZGUgPHJhbmRvbT4KI2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBEaXNwbGF5U2l4KHVuc2lnbmVkIGNoYXIgaU51bWJlcikKewogIHVuc2lnbmVkIGludCBpRGlzcGxheTsKICBkZWZhdWx0X3JhbmRvbV9lbmdpbmUgZW5naW5lOwogIHVuaWZvcm1faW50X2Rpc3RyaWJ1dGlvbjxpbnQ+ZGlzdHJpYnV0aW9uKDEsNik7CiAgZG8KICB7CiAgICBpRGlzcGxheT1kaXN0cmlidXRpb24oZW5naW5lKTsKICAgIGNvdXQgPDwgaURpc3BsYXk7CiAgICBjb3V0IDw8ICJcbiI7CiAgICBpTnVtYmVyLS07CiAgfQogIHdoaWxlKGlOdW1iZXI+MCk7CiAgcmV0dXJuOwp9CgppbnQgbWFpbigpCnsKICAgIERpc3BsYXlTaXgoMTApOwp9