#include <iostream>
#include <random>
using namespace std;
int main()
{
// Random seed
random_device rd;
// Initialize Mersenne Twister pseudo-random number generator
mt19937 gen(rd());
// Generate pseudo-random numbers
// uniformly distributed in range (1, 100)
uniform_int_distribution<> dis(1, 100);
// Generate ten pseudo-random numbers
for (int i = 0; i < 10; i++)
{
int randomX = dis(gen);
cout << "\nRandom X = " << randomX;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8cmFuZG9tPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CiAgICAvLyBSYW5kb20gc2VlZAogICAgcmFuZG9tX2RldmljZSByZDsKCiAgICAvLyBJbml0aWFsaXplIE1lcnNlbm5lIFR3aXN0ZXIgcHNldWRvLXJhbmRvbSBudW1iZXIgZ2VuZXJhdG9yCiAgICBtdDE5OTM3IGdlbihyZCgpKTsKCiAgICAvLyBHZW5lcmF0ZSBwc2V1ZG8tcmFuZG9tIG51bWJlcnMKICAgIC8vIHVuaWZvcm1seSBkaXN0cmlidXRlZCBpbiByYW5nZSAoMSwgMTAwKQogICAgdW5pZm9ybV9pbnRfZGlzdHJpYnV0aW9uPD4gZGlzKDEsIDEwMCk7CgogICAgLy8gR2VuZXJhdGUgdGVuIHBzZXVkby1yYW5kb20gbnVtYmVycwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCAxMDsgaSsrKQogICAgewogICAgICAgIGludCByYW5kb21YID0gZGlzKGdlbik7CiAgICAgICAgY291dCA8PCAiXG5SYW5kb20gWCA9ICIgPDwgcmFuZG9tWDsKICAgIH0KfQo=