MFC取随机数

    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);
    }

你可能感兴趣的:(c++,mfc,随机数)