Results 1 to 2 of 2

Thread: Percentages

  1. #1
    Angziety94 is offline Member
    Join Date
    Dec 2010
    Rep Power

    Default Percentages

    Hi, I am working with java in my computer class. My assignment was to finish a game, and for extra credit i need to add rats. These rats have to eat a random percent of 1%-10% of grain(food). The food is a random number each year. :confused:I don't know how generate that random percent:confused:. Also the percent also has to be random each time it is called. If anyone can provide any information, that would be much appreciated.

  2. #2
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Rep Power

Similar Threads

  1. using percentages?
    By shroomiin in forum New To Java
    Replies: 3
    Last Post: 09-30-2009, 01:58 AM
  2. [SOLVED] Noobie - Calculating Percentages
    By fullmetaljacket in forum New To Java
    Replies: 16
    Last Post: 05-22-2009, 01:10 AM
  3. Percentages
    By Ciwan in forum New To Java
    Replies: 3
    Last Post: 02-16-2009, 05:34 AM
  4. Qadratic Formula and Percentages
    By bbtgirl in forum JCreator
    Replies: 4
    Last Post: 02-07-2009, 03:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts