shawnthye says
14 years ago
C語言中可以設定rand()的亂數範圍嗎?
UNARY says
14 years ago
rand() % n
shawnthye says
14 years ago
恩...剛剛學會了...還是要謝謝你... :-)
shawnthye says
14 years ago
那么如果我想要去乱数里面1~5000范围呢?要怎么取?
立即下載
UNARY says
14 years ago
(rand() % 5000)+1 這樣嗎