Results 1 to 1 of 1

Math Help - chances of X based on these conditions

  1. #1
    Newbie
    Joined
    Nov 2011
    Posts
    1

    chances of X based on these conditions

    Hi,
    I was wondering about this and thought I asked if someone can tell me. This isn't a homework question or anything like that, it's actually something I implemented in a facebook app game.

    So let's say I have 20 items, [id1,id2,id3...id20]
    I select a random number (Y) from 1 to 20
    if (Y <= 5)
    then I get another random number from 1 to 20 and set that as the item
    Else, I set Y as the item

    For example,
    case 1:
    random number is 8, item = id8

    case 2:
    random number is 4, so i get another random number and it is 15, so item = id15

    case 3:
    random number is 4, so i get another random number and it is 3, so item is id3

    now my question is what is the % chance of getting a number from 1 to 5 giving these conditions? My guess is that it is 2.5 %, but I know that's not right
    Last edited by CaptainBlack; November 24th 2011 at 09:27 PM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. what are the chances of a heads...
    Posted in the Statistics Forum
    Replies: 2
    Last Post: April 17th 2011, 04:38 AM
  2. Approximating Function based on 4 conditions
    Posted in the Calculus Forum
    Replies: 2
    Last Post: March 24th 2010, 08:24 AM
  3. What are the chances?
    Posted in the Statistics Forum
    Replies: 3
    Last Post: June 28th 2008, 04:31 AM
  4. What are the chances?
    Posted in the Statistics Forum
    Replies: 2
    Last Post: May 5th 2008, 10:00 AM
  5. what are the chances?
    Posted in the Statistics Forum
    Replies: 6
    Last Post: January 14th 2006, 05:43 PM

/mathhelpforum @mathhelpforum