srand ((unsigned)time(0)); ... 用法: void srand(unsigned int seed); ... srand()用來設置rand()產生隨機數時的隨機數種子。
確定! 回上一頁