#include <random>
#include <chrono>
int main()
{
std::random_device rdev ; // if we have a random_device
std::mt19937 rng1( rdev() ) ;
// ...
// ticks from clock with the highest possible resolution
std::mt19937 rng2( std::chrono::high_resolution_clock::now().time_since_epoch().count() ) ;
// ...
}