Hi everyone!

I am trying to work on a very easy function (If) but my formula comes out wrong in excel 2007. I can't correct the mistake though. Here is what I am doing:
A1 Random number
A2 Guess the number (1-1000)
A3 The number you guessed is
B1=INT(RAND()*1000+1)
B3=IF(B1=B2;"correct";IF(B2>B1;"too big";"too small"))

Where is the error?

Thanks for the help