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