Consulting

Results 1 to 2 of 2

Thread: How do I draw random numbers from a Weibull distribution with known parameters?

  1. #1

    How do I draw random numbers from a Weibull distribution with known parameters?

    Hello!

    I want to draw random numbers from a Weibull distribution using VBA. I have multiple Weibull distribution with known shape and scale parameter which I want to draw random numbers from. For a normal distribution I used: Worksheetfunction.Round(Worksheetfunction.Norm_Inv(Rnd(), meand,standard deviation,0)
    Now I would like something which generates random numbers from a Weibull function with known shape and scale parameter. Only I could not figur out how to do it.

    Hope you can help me!
    Thanks in advance!

    Thom

  2. #2
    VBAX Wizard
    Joined
    Apr 2007
    Posts
    6,758
    Location
    Paul

    ------------------------------------------------------------------------------------------------------------------------
    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s)
    (multiple files can be selected while holding Ctrl key) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

Posting Permissions

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