Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Need Opinions Pls!! Need Help Badly

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    1
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Need Opinions Pls!! Need Help Badly

    Guys, i am wondering if you could help me in my project. I would to ask your opinion of what algorithm is best to used in generating random numbers that ranges from 1 to 9.. Its a game like "Sphere Break" a famous mini game of FFx-2. Pls refer to the picture for example 0.jpg My problem is that i want a certain algorithm to generate random numbers from 1 - 9 like in the picture every gameplay = another set of random coins... P.S. i am developing an android game using unity !! thx for the response


  2. #2
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    666
    Thanks
    0
    Thanked 121 Times in 105 Posts

    Default Re: Need Opinions Pls!! Need Help Badly

    How about using the "Random" class from the standard library?
    It has a method to generate a random integer between 0 and an upper limit given as parameter.

  3. The Following User Says Thank You to Cornix For This Useful Post:

    harris10692 (June 13th, 2014)

  4. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Need Opinions Pls!! Need Help Badly

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

  5. The Following User Says Thank You to GregBrannon For This Useful Post:

    harris10692 (June 13th, 2014)

Similar Threads

  1. Replies: 1
    Last Post: February 25th, 2014, 04:21 AM
  2. Head First Servlets and JSP 2e Opinions Please
    By djl1990 in forum Java Servlet
    Replies: 0
    Last Post: May 7th, 2012, 06:01 PM
  3. what project would be good for beginners? [opinions needed]
    By thisbeme in forum Java Theory & Questions
    Replies: 2
    Last Post: March 4th, 2012, 10:14 AM
  4. My first program. opinions on what i could do better
    By derekxec in forum Java Theory & Questions
    Replies: 3
    Last Post: June 20th, 2011, 11:42 AM
  5. A few opinions on a project desired
    By LDM91 in forum Java Theory & Questions
    Replies: 4
    Last Post: December 17th, 2010, 02:36 PM