This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
While taking a practice test I ran across this question: What is the value of the following expression: Math.round(Math.random() + 2.50001); A. 2 B. 3 C. It is impossible to say I thought the answer should be C, but the book said B. Most the time the result should be 3. But is it possible for random() to return .999999 It that case the value would be 4.