Java tutorial
import java.util.ArrayList; import java.util.Collections; import java.util.List; public class Main { public static void main(String[] argv) throws Exception { List<Integer> list = new ArrayList<Integer>(); for (int i = 1; i <= 12; i++) list.add(new Integer(i)); Collections.shuffle(list); System.out.println(list); } }