default_random_engine e(time(0));//传奇time0
uniform_int_distribution<int>random(1,10);//范围1~10
result=random(e);//获得随机数