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 5 of 5

Thread: generateRandomNumber

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default generateRandomNumber

    What is generateRandomNumber class ?
    Please explain with example.

  2. Default Related threads:


  3. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: generateRandomNumber

    Quote Originally Posted by vinaysa86 View Post
    What is generateRandomNumber class ?
    Please explain with example.
    Given it is not a class that is part of the standard java SE (or any commonly used library for that matter), most likely few have any clue what you are talking about

  4. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: generateRandomNumber

    Does it have anything to do with this other post?
    http://www.javaprogrammingforums.com...html#post67972
    If you don't understand my answer, don't ignore it, ask a question.

  5. #4
    Member
    Join Date
    Apr 2012
    Posts
    160
    Thanks
    0
    Thanked 27 Times in 27 Posts

    Default Re: generateRandomNumber

    Have a look at the Random class

  6. #5
    Junior Member
    Join Date
    Jun 2012
    Location
    Birmingham
    Posts
    20
    My Mood
    Depressed
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default Re: generateRandomNumber

    you can use java.util.Random to make a random number generater see(Java 2 Platform SE 5.0)

Similar Threads

  1. generateRandomNumber
    By vinaysa86 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: June 6th, 2012, 09:10 AM