CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
#include <random>
#include <array>
#include <string>
unsigned long long rdtsc() {
unsigned int lo, hi;
__asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi));
return ((unsigned long long)hi << 32) | lo;
}
/* -------------------------------- */
class randomNum
{
private:
std::random_device rd;
typedef std::mt19937_64 MyGen;
MyGen gen;
int minRand;
int maxRand;
unsigned long long seed;
public:
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run