We don't bite newbies here... much | |
PerlMonks |
Re: Skew normally distributed random numbersby fglock (Vicar) |
on Jan 28, 2005 at 11:39 UTC ( [id://425906]=note: print w/replies, xml ) | Need Help?? |
If I understand the question, you want to change the mean value of a random function to a given value, right? This is a linear transformation, and it is very simple to implement: $val = old_random_function() - $old_avg + $new_avg;or, create a new function: sub new_random_function { old_random_function() - $old_avg + $new_avg }
In Section
Seekers of Perl Wisdom
|
|