使用rand() 產生亂數,會介於0 ~ RAND_MAX(32767)調整亂數範圍: 下限+ rand % (上限-下限+1)設定亂數種子: srand( time(NULL));--關於.
確定! 回上一頁