// Don't place your source in a package
import java.util.*;
import java.lang.*;
import java.io.*;
// Please name your class Main
class Main {
int [] myLotto = new int[7];
System.
out.
println("김정호 로또 번호 시작 5처넌치");
for (int i=0;i<myLotto.length; i++){
myLotto
[i
] = (int) (Math.
random() * 45 +1);
for (int j = 0; j < i; j++){
if (myLotto[j] == myLotto[i]){
i--;
break;
}
}
}
for (int i=0;i<myLotto.length-1;i++) {
System.
out.
print(myLotto
[i
] + " ");
}
for (int i=0;i<myLotto.length; i++){
myLotto
[i
] = (int) (Math.
random() * 45 +1);
for (int j = 0; j < i; j++){
if (myLotto[j] == myLotto[i]){
i--;
break;
}
}
}
for (int i=0;i<myLotto.length-1;i++) {
System.
out.
print(myLotto
[i
] + " "); }
for (int i=0;i<myLotto.length; i++){
myLotto
[i
] = (int) (Math.
random() * 45 +1);
for (int j = 0; j < i; j++){
if (myLotto[j] == myLotto[i]){
i--;
break;
}
}
}
for (int i=0;i<myLotto.length-1;i++) {
System.
out.
print(myLotto
[i
] + " "); }
for (int i=0;i<myLotto.length; i++){
myLotto
[i
] = (int) (Math.
random() * 45 +1);
for (int j = 0; j < i; j++){
if (myLotto[j] == myLotto[i]){
i--;
break;
}
}
}
for (int i=0;i<myLotto.length-1;i++) {
System.
out.
print(myLotto
[i
] + " "); }
for (int i=0;i<myLotto.length; i++){
myLotto
[i
] = (int) (Math.
random() * 45 +1);
for (int j = 0; j < i; j++){
if (myLotto[j] == myLotto[i]){
i--;
break;
}
}
}
for (int i=0;i<myLotto.length-1;i++) {
System.
out.
print(myLotto
[i
] + " "); }
// System.out.println("보너스번호:" + myLotto[6]);)
}
}