#include #include #include using namespace stdclass uniformrandom publicuniformrandomint seed currenttimesecondsgeneratorseed /return pseudorandom int int nextintstatic uniform_int_distribution distributionreturn distributiongenerator)/return pseudorandom int in range [ highint nextintint high return nextint high )/return pseudorandom int in range [low highint nextintint lowint high uniform_int_distribution distributionlowhigh )return distributiongenerator )/return pseudorandom double in the range [ double nextdoublestatic uniform_real_distribution distribution )return distributiongenerator)privatemt generator}int currenttimesecondsauto now chrono::high_resolution_clock::nowtime_since_epoch)return (chrono::duration_castnow count)figure class that uses ++ random-number facilities