(2.1) 用隨機亂數產生low~up 之整數pos : pos = rand() % (up-low+1); (2.2) 將第i 張牌與第pos 張牌交換: tmp = array[pos]; array[i] = array[pos];
確定! 回上一頁