+ Reply to Thread
Results 1 to 4 of 4

How to produce a random number from a triangular distribution?

  1. #1
    Registered User
    Join Date
    12-10-2016
    Location
    London
    MS-Off Ver
    2015
    Posts
    1

    How to produce a random number from a triangular distribution?

    Hello guys!

    I would like to be able to create a random number using a triangular distribution...

    However this is not a function pre-programmed into Excel - I can not find an easy way to put in the formula either, even using add-ins.

    Could someone help me to to do this? I have added a picture of the triangular distribution with minimum value=2, mode=4, max-10.


    Thanks in advance!

    Screen Shot 2016-12-11 at 19.17.39.png

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to produce a random number from a triangular distribution?

    Welcome to the board.

    A
    B
    C
    1
    min
    2
    2
    max
    10
    3
    mode
    4
    4
    6.2405
    B4: =RandTri(B$1, B$2, B$3)
    5
    5.2676
    6
    2.4736
    7
    6.2629
    8
    7.4321
    9
    5.5074
    10
    2.9486
    11
    4.4749
    12
    6.8287
    13
    4.1604
    14
    6.6110
    15
    2.8518
    16
    4.5164
    17
    4.2115
    18
    8.4440
    19
    5.2244
    20
    8.6486
    21
    6.7118
    22
    7.0160
    23
    4.6966
    24
    7.5159
    25
    6.6566


    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: How to produce a random number from a triangular distribution?

    Cross-posted @

    http://www.mrexcel.com/forum/excel-q...ml#post4703220
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,876

    Re: How to produce a random number from a triangular distribution?

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Random Number Generated from Truncated Distribution
    By love_sick7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-24-2014, 10:57 AM
  2. Produce set of Random Numbers but no duplicates
    By beat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2012, 04:05 AM
  3. Replies: 3
    Last Post: 08-05-2012, 05:47 PM
  4. Replies: 6
    Last Post: 12-05-2008, 02:31 PM
  5. Random values from a Triangular Distribution
    By leebean337 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2006, 11:44 AM
  6. triangular distribution
    By TD in forum Excel General
    Replies: 3
    Last Post: 12-23-2005, 08:35 PM
  7. Log distribution random number generator
    By cameron mcintyre in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2005, 07:05 AM
  8. Random Distribution
    By Rick via OfficeKB.com in forum Excel General
    Replies: 3
    Last Post: 04-29-2005, 03:06 PM

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