//随机数种子 srand((UINT)GetCurrentTime());//windows项目可以使用 srand(int(time(0)) + rand());//android 的apk能使用的 //获取真正的随机数 r = rand()%24;