(arr)
| 2185 | } |
| 2186 | // 随机洗牌排序 |
| 2187 | function shuffle(arr) { |
| 2188 | var input = arr; |
| 2189 | for (var i = input.length - 1; i >= 0; i--) { |
| 2190 | var randomIndex = Math.floor(Math.random() * (i + 1)); |
| 2191 | var itemAtIndex = input[randomIndex]; |
| 2192 | input[randomIndex] = input[i]; |
| 2193 | input[i] = itemAtIndex; |
| 2194 | } |
| 2195 | return input; |
| 2196 | } |
| 2197 | |
| 2198 | //根据指定规则排序 |
| 2199 | function Sort_KWD (cnt,strs) { |