srand((unsigned)time(NULL));
for (int i = 0; i < 10; i++)
{
int x = 86 + rand() % (106 - 76 + 1);
int y = 307 + rand() % (373 - 307 + 1);
AtlTrace("%d %d \r\n", x, y);
}
MFC取随机数
最新推荐文章于 2022-03-05 20:34:05 发布