#include <iostream>
#include <cstdlib>
#include "time.h"
int Droll()
{
int outcome;
int l_limit = 1; // floor or lower limit of a die
int h_limit = 6; //ceiling or higher limit of a die
outcome = rand() % (h_limit - l_limit + 1) + l_limit;
return outcome;
}
int main()
{
srand(time(0));
for(int i=0;i<1;i++)
{
std::cout << Droll() << " ";
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGxpYj4KI2luY2x1ZGUgInRpbWUuaCIKCmludCBEcm9sbCgpCnsKICAgIGludCBvdXRjb21lOwogICAgaW50IGxfbGltaXQgPSAxOyAgLy8gZmxvb3Igb3IgbG93ZXIgbGltaXQgb2YgYSBkaWUKICAgIGludCBoX2xpbWl0ID0gNjsgLy9jZWlsaW5nIG9yIGhpZ2hlciBsaW1pdCBvZiBhIGRpZQoKICAgIG91dGNvbWUgPSByYW5kKCkgJSAoaF9saW1pdCAtIGxfbGltaXQgKyAxKSArIGxfbGltaXQ7CgogICAgcmV0dXJuIG91dGNvbWU7Cn0KCmludCBtYWluKCkKewogICAgc3JhbmQodGltZSgwKSk7CiAgICBmb3IoaW50IGk9MDtpPDE7aSsrKQogICAgewogICAgICAgIHN0ZDo6Y291dCA8PCBEcm9sbCgpIDw8ICIgIjsKICAgIH0KfQ==