for (int c=1; c<=6; c++)
{
int a=(int)(Math.random()*37+1);
int b=(int)(Math.random()*8+1);
System.out.print (a+" ");
if (c==6) System.out.println ("- "+b);
}

I can't have the same number twice
please help