C++ 真随机 //随机数的种子这样1、 #include <ctime>2、 srand( (unsigned int)time(NULL) );3、 rand()%(GAME_WIDTH - m_enemys[i].m_Rect.width());