在Java中,有一个方法Collections.shuffle() 可以随机打乱列表的元素。 ... asList() is backed by the array Collections.shuffle(Arrays.asList(array));.
確定! 回上一頁