C /C++ 之亂數函式放在stdlib.h / cstdlib 裡面,在使用時直接呼喚rand() 即可。 ... 亂數種子; srand((unsigned)time(NULL));; // 產生[0,1) 之亂數 ...
確定! 回上一頁