Thread: [PI] Requesting Misc.randomDouble

Results 1 to 2 of 2
  1. #1 [PI] Requesting Misc.randomDouble 
    Registered Member Khalym's Avatar
    Join Date
    Oct 2009
    Posts
    98
    Thanks given
    8
    Thanks received
    1
    Rep Power
    6
    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
    Reply With Quote  
     

  2. #2  
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,434
    Thanks given
    715
    Thanks received
    1,435
    Rep Power
    1202
    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.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 0
    Last Post: 11-15-2010, 01:40 PM
  2. Replies: 0
    Last Post: 11-06-2010, 07:51 PM
  3. Replies: 0
    Last Post: 11-06-2010, 07:50 PM
  4. PI request
    By Mickt3 in forum Requests
    Replies: 15
    Last Post: 09-26-2010, 08:55 PM
  5. PI Requests
    By Xuzk in forum Requests
    Replies: 0
    Last Post: 07-28-2010, 07:28 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •