java.lang.Math.random()
That returns a double between -0.1 and and 1.0. You times that by something to get an integer, ex: 0.5 * 100 = 50.
|
Hi,
Requesting a method I'm missing for this drop system.
It's randomDouble, and should be in the Misc class. If anyone has it, please post it here! I will rep++ you, and you will make me a happy person!
-Josh
java.lang.Math.random()
That returns a double between -0.1 and and 1.0. You times that by something to get an integer, ex: 0.5 * 100 = 50.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |