Think about Loose Coupling | |
PerlMonks |
Re: Answer: How do I get random numbers that follow standard distribution?by polettix (Vicar) |
on Mar 24, 2005 at 17:38 UTC ( [id://442131]=note: print w/replies, xml ) | Need Help?? |
I do support the previous answer: the code should include the test for $w being zero, otherwise you risk a division by zero in the very next line.
The proposed solution roots in Numerical Recipes in C, chapter 7, section 2; probably it' better to update the Perl Cookbook and the answer in Q&A as well. Flavio Don't fool yourself.
In Section
Seekers of Perl Wisdom
|
|