in reply to Re^3: Skew normally distributed random numbers
in thread Skew normally distributed random numbers
Now you've said it, I can see that is a possible-- maybe, the more obviously correct interpretation--but if it is, I am confused.
If you have a function that returns random numbers distibuted over the range x .. y, then--if the PRNG is any good--the mean will tend towards (x+y)/2.
If you want a different mean with the same average delta, you just add the delta between the current and desired means to the low and high value of the range and your function will produce values in that range.
I guess what I am saying is, if you want your numbers in one range, why produce them in another range and then add the delta to each one, rather than producing them in the desired range in the first place?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Skew normally distributed random numbers
by fglock (Vicar) on Jan 28, 2005 at 13:36 UTC | |
by BrowserUk (Patriarch) on Jan 28, 2005 at 13:49 UTC | |
by BrowserUk (Patriarch) on Jan 28, 2005 at 15:27 UTC | |
by fglock (Vicar) on Jan 28, 2005 at 16:38 UTC |