Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank You gsnu200901, Bernard Li and Bernd P for your replies.
I used something very much like gsnu200901's method, but with 1-100, which lends itself to dividing the % values a little finer. -plh In article , ?B?R2FyeScncyBTdHVkZW50?= says... First generate a value between 1 and 10. Then map it to an output as follows: 1 1 2 1 3 1 4 1 5 2 6 2 7 2 8 3 9 3 10 4 Clearly you will make more 1s than 2s. more 2s than 3s more 3s than 4s You can modify the table size and contents to simulate any arbitrary distrbution. -- Gary''s Student - gsnu200901 "plh" wrote: Hi Gurus, What I want to do is similar to the use of the Rnd() function but I want to bias the results. In my case I am obtaining numbers from 1 to 4 using Int((uB - lB + 1) * Rnd + lB) Where uB = 4 and lB = 1, but I want to skew the outcome so that 1 is more probable that 2 which is more probable than 3 etc., with the probability values yet to be determined. Thank You, -plh -- Where are we going and why am I in this HAND BASKET?? -- Where are we going and why am I in this HAND BASKET?? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Random Number Generation | Excel Programming | |||
Covariance in Excel in biased | Excel Programming | |||
Random Number Generation | Excel Programming | |||
I need help with random number generation | Excel Worksheet Functions | |||
random number generation | Excel Programming |