This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Math.random() returns a random double between 0 and 1. But you want a range of 0.4. Therefore, multiply Math.random() by .4. This gives you a random number between 0 and .4. Now add .6 to this number, pushing the range up to .6 to 1.
I've heard it takes forever to grow a woman from the ground
Joined: Aug 06, 2004
Thank you Joe,
That was too silly a question to ask. Thank you again for bearing this topic.