首页 新闻 赞助 找找看
1
回答数

回答被采纳 srand 与 rand

srand函数与rand函数到底是怎么工作的; 我单独用rand函数时:比如 for(int i=0;i<=5;i++) { cout<<rand()%100<<endl; }这个函数可以生成6个不同