[問題] 關於srand(time(NULL))應用於多process ... 因為time(NULL)只有準確到秒? ... 這樣兩個process time(NULL)+rand()的值似乎是一樣? ... why not use pid ? ... 要不要試試看 ...
確定! 回上一頁