返回列表 發帖
本帖最後由 蔡少宇 於 2019-11-2 11:48 編輯

#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
    srand(time(NULL));
    for(int i=1; i<=20; i++)
    {
        cout<<rand()%4+4<<endl;
    }
    system("pause");
    return 0;
}

TOP

返回列表