Sorry about the non descriptive title and the lack of code, I'll try to explain what I'm having trouble with in this post ^.^

This is what I have so far to fix the problem:

Code:

int p1_guess;
int p2_guess;
int maybe_p1;
int maybe_p2;
Scanner input = new Scanner (System.in);
InputStreamReader inStream = new InputStreamReader (System.in);
BufferedReader stdin = new BufferedReader (inStream);
Random generator = new Random(100);
System.out.println("The random generator has generated a number, guess what it was");
p1_guess = input.nextInt();
p2_guess = input.nextInt();
maybe_p1 = generator - p1_guess;
maybe_p2 = generator - p2_guess;

I know I have to subtract the two guesses against the generator and then compare the values, but I heard about a little line of code in the Math class called Math.abs() which will give me the absolute value of the result, but unfortunately, I am unaware of how to use this piece of code...

Also, because my Java skills are terrible, I was unaware that you couldn't subtract integer variables from a random number generator, so when I got to the line:

Code:

maybe_p1 = generator - p1_guess;

I got this error:

Code:

operator - cannot be applied to java.util.Random,int
maybe_p1 = generator - p1_guess;

I'm not sure how to fix that...

So yeah, any help would be very nice,

Bananas.