public class test {
public static void main(String[] args) {
int[] a = new int[36];
for(int i = 0; i < 36; ++i)
a[i] = i+1;
for(int i = 0; i < 5; ++i)
randomSelect(a, 7);
}
static void randomSelect(int[] a, int n) {
randomShuffle(a, 7);
for(int i = 0; i < n; ++i)
System.out.print(a[i] + " ");
System.out.println();
}
static void randomShuffle(int[] a, int n) {
for(int i = 0; i < n; ++i) {
int r = (int)(Math.random() * a.length);
int tmp = a[i];
a[i] = a[r];
a[r] = tmp;
}
}
}