例如用PID: srand((unsigned) time(NULL) + getpid()); 二、整數亂數. ... rand_num = (3.0 - (-3.0)) * rand() / RAND_MAX + (-3.0);.
確定! 回上一頁