import java.util.Arrays;
import java.util.Collections;
import java.util.List;
List<String> list = Arrays.asList("AA", "BB", "CC");
System.out.println(list); // => [AA, BB, CC]
Collections.shuffle(list);
System.out.println(list); // => [CC, AA, BB]
Recommended Posts