srand (time(NULL)); // or even srand(time(0)); ... use nanoseconds to seed RNG. srand((time_t)time_seed.tv_nsec); for (int i=0; i<5; ...
確定! 回上一頁