Results 1 to 2 of 2
  1. #1
    Inferna is offline Member
    Join Date
    Jun 2013
    Rep Power

    Post Radio Button Random Number Generator


    I have just downloaded eclipse. I am 100% brand new to java. I was wondering if anyone knows how to do this:

    I have three radio buttons: 'Max 10', 'Max 100', and 'Max 1000'. These are my upper limits for the button, which generates the number using the radio buttons to alter the upper limit. I have no idea what to enter, the most I have found is:
    int randomIndex = generator.nextInt( n ); where n = upper limit.
    I am using the android SDK plugin also.
    Do I use the .java, .xml, or both?


    PS: before anyone asks, I was told to put this in the android sub-forum.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Radio Button Random Number Generator

    Please go through the Forum Rules, particularly the second paragraph.

    I'm closing this thread as a duplicate of

    If this is an Android question, answer the question in the other thread and I'll move it here.


    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Radio Button Random Number Generator
    By Inferna in forum Android
    Replies: 7
    Last Post: 06-14-2013, 07:43 PM
  2. Random number generator
    By adjit in forum New To Java
    Replies: 9
    Last Post: 03-05-2012, 04:09 PM
  3. Help with Random Number Generator
    By celtics in forum New To Java
    Replies: 0
    Last Post: 03-07-2011, 08:18 PM
  4. Random number generator
    By zerwik in forum New To Java
    Replies: 3
    Last Post: 12-26-2010, 12:10 PM
  5. Random number generator
    By Michailangelo in forum Advanced Java
    Replies: 4
    Last Post: 04-02-2010, 06:47 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