http://qs321.pair.com?node_id=26896


in reply to How do I get random numbers that follow standard distribution?

i think you're going to have to use statistics. i don't believe Perl has anything built-in to do it, though there might be a module on CPAN. Perl's rand($n) will give you numbers (more or less) uniformly distributed between 0 and 1. its up to you to convert this to a normalized distribution.
  • Comment on Re: How do I get random numbers that follow standard distribution?