import java.*;
import java.util.Random;
public class asd {
public static void main(String[] args) {
// TODO Auto-generated method stub
int [] red = new int[6];
int blue;
System.out.println();
Random random=new Random();
blue = random.nextInt(16)+1;
System.out.println(blue);
for(int i=0;i<6;i++)
{
red[i]=random.nextInt(32)+1;
for(int j=0;j<=i;j++)
{
if(red[j]==red[i]||red[j]==blue)
red[i]=random.nextInt(32)+1;
}
}
for(int i=0;i<6;i++)
{
System.out.printf("%d ",red[i]);
}
}
}
import java.util.Random;
public class asd {
public static void main(String[] args) {
// TODO Auto-generated method stub
int [] red = new int[6];
int blue;
System.out.println();
Random random=new Random();
blue = random.nextInt(16)+1;
System.out.println(blue);
for(int i=0;i<6;i++)
{
red[i]=random.nextInt(32)+1;
for(int j=0;j<=i;j++)
{
if(red[j]==red[i]||red[j]==blue)
red[i]=random.nextInt(32)+1;
}
}
for(int i=0;i<6;i++)
{
System.out.printf("%d ",red[i]);
}
}
}