#include<chrono>#include"Random.h"intRandom::s_seed=time(nullptr);// Seed from the time in millisecondsvoidRandom::SetSeed(intseed){s_seed=seed;}intRandom::RandInt(intmin,intmax){s_seed=(214013*s_seed+2531011)%2147483648;if(min==max)returnmin;return(s_seed%(max-(min-1)))+min;}