import java.util.*;
public class Computer {
public Computer(){}
public Computer(int A, int B, int[] Guess) {
this.A = A;
this.B = B;
this.Guess = Guess;
}
private int A;
public int getA() {
return this.A;
}
public void setA(int A) {
this.A = A;
}
private int B;
public int getB() {
return this.B;
}
public void setB(int B) {
this.B = B;
}
private int[] Guess;
public int[] getGuess() {
return this.Guess;
}
public void setGuess(int[] Guess) {
this.Guess = Guess;
}
public int[] getGuessNumber() {
int[] guess = new int[4];
List<Integer> ls = new ArrayList<Integer>();
for (int i = 0; i < 10; i++)
ls.add(i);
for (int j = 0; j < 4; j++) {
int n=ls.size();
int num = new Random().nextInt(n);
while (j == 0 && ls.get(num) == 0) {
num = new Random().nextInt(n);
}
guess[j] = ls.get(num);
ls.remove(num);
}
return guess;
}
public String toString(int[] guess) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < 4; i++)
sb.append(guess[i] + " ");
return sb.toString();
}
}