An Example of “real random”
You can specify a larger random number and the result will be different each time
#include <iostream>
#include <random>
#include<fstream>
int main()
{
std::ofstream opS("d:/data/randrealS.txt");
std::ofstream opT("d:/data/randrealT.txt");
std::ofstream opF("d:/data/randrealF.txt");
/* Seed */
std::random_device rd;
/* Random number generator */
std::default_random_engine generator(rd());
/* Distribution on which to apply the generator */
std::uniform_int_distribution<long long unsigned> distribution(0,264347);
for (int i = 0; i < 100000; i++) {
opS << distribution(generator) << std::endl;
opT << distribution(generator) << std::endl;
opF << i/4 << std::endl;
}
return 0;
}