#include <random>
class Engine
{
public:
Engine() :
m_generator(std::random_device()()),
m_distribution(0, 36)
{}
int spin() { return m_distribution(m_generator); }
private:
std::mt19937 m_generator;
std::uniform_int_distribution<int> m_distribution;
};
#include <iostream>
int main()
{
Engine eng;
for(int i = 0; i < 20; ++i)
std::cout << eng.spin() << '\n';
}
I2luY2x1ZGUgPHJhbmRvbT4KY2xhc3MgRW5naW5lCnsKcHVibGljOgogICAgRW5naW5lKCkgOgogICAgbV9nZW5lcmF0b3Ioc3RkOjpyYW5kb21fZGV2aWNlKCkoKSksCiAgICBtX2Rpc3RyaWJ1dGlvbigwLCAzNikKICAgIHt9CgogICAgaW50IHNwaW4oKSB7IHJldHVybiBtX2Rpc3RyaWJ1dGlvbihtX2dlbmVyYXRvcik7IH0KcHJpdmF0ZToKICAgIHN0ZDo6bXQxOTkzNyBtX2dlbmVyYXRvcjsKICAgIHN0ZDo6dW5pZm9ybV9pbnRfZGlzdHJpYnV0aW9uPGludD4gbV9kaXN0cmlidXRpb247Cgp9OwoKI2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKSAKewoJRW5naW5lIGVuZzsKCglmb3IoaW50IGkgPSAwOyBpIDwgMjA7ICsraSkKICAgIAlzdGQ6OmNvdXQgPDwgZW5nLnNwaW4oKSA8PCAnXG4nOwp9