+ Reply to Thread
Results 1 to 2 of 2

Need Help with a Random Number Generator with Weighted Probability for Certain Numbers

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    54

    Need Help with a Random Number Generator with Weighted Probability for Certain Numbers

    Friends,

    I have a workbook with around 200 items, indexed from 1 to 200.

    I need excel to generate several random numbers from this list...

    BUT...

    Certain items in the list need to be more likely to be generated. I was thinking of a assigning an "Importance Factor" of sorts to certain items in the list which would alter the likelyhood of that item's index number being selected.

    Does anyone have any ideas?

  2. #2
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Need Help with a Random Number Generator with Weighted Probability for Certain Numbers

    Normally the basic idea is that each item in a set has a equal probability of getting picked at random. If you want some items to have a greater probability of being picked, you need to assign them more slots.

    For example, if A = 10% chance, B = 20% chance, C = 30% chance, & D = 40% chance.

    Then you generate a random number for 1 to 10, and assign A to 1, B to 2 & 3, C to 4-6, and D to 7-10.

    Your problem isn't that much different. You just need to figure out how much more important some items are compared to the rest. Are they twice as important? What?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1