n = (int)(Math.random()*(10-i));. 2. arr[i] = num[n];. Copied! 剛剛是透過亂數產生0-9,現在變成產生0-8;目的是不去取用到num[9].
確定! 回上一頁