标签:
#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { cout<<time(0)<<endl; srand(time(0)); for(int x=1; x<25; ++x) { cout<<1+(rand()%6)<<endl; } return 0; }
标签:
原文地址:http://www.cnblogs.com/acode/p/4541867.html