public class Ts { public static void main(String[] args) { Random rand = new Random();int row = 3;int col = 3;Set<Integer> cols = new HashSet<Integer>();for (int i = 0; i < col; i++){ while(cols.size() < row){ cols.add(rand.nextInt(6));} System.out.p...