List<String> students = Arrays.asList("Foo", "Bar", "Baz", "Qux"); Collections.shuffle(students);. 還有第二個版本的java.util.
確定! 回上一頁