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取随机数
最新推荐文章于 2024-07-24 15:04:51 发布