In the RHE the question (27, from the final

test) about what will be the value of

Math.round(Math.random() + 2.50001);

is given to be 3.

But I thing the (Math.random() + 2.50001) is < 3.50001, that means

it can be 3.5000009, and this number rounded will be 4.

I tried the code:

public class X

{

public static void main(

String args[])

{

for(int i= 0;;i++) {

double d = Math.round(Math.random() + 2.50001);

// System.out.println("d is: " + d);

if(d == 4.0) {

System.out.println("I had right...." + d + "I made:" + i + "attempts");

break;

}

}

}

}

which after some tens of thounsands of attempts gives 4.

Is it so that the answer will be "impossible to say" or

something like that?

Thanks,

Cristian