for(int j=0;j<2;j++) { for(int i=0;i<3276800;i++) { cout<<(rand()%2)<<'\n'; } cout<<endl; }
第一个3276800和第二个3276800是相同的.rand()的数量不一样,但是odevity是相同的; 为什么?
c++ random
c++ ×1
random ×1