Hi all,
Found this on Phil & Simon Book.
Answer's provided
1. 2
2. 3
3. Impossible to say.
Answer given 3.
I was wondering since random() returs values >= 0.0 - < 1.0.
Least value is 0.0 - Math.round( 2.50001 ) -> 3
Max Value is 0.9 - Math.round( 3.40001 ) -> 3
Can the random() values returned go more than one decimal like 0.9999 (then how far). I know that would change the value. I checked
java doc on random() there too he does not mention on the decimal part of it.
Please clarify.
- Kits
[ August 25, 2004: Message edited by: Barry Gaunt ]