in reply to how can i generate random numbers with predefined mean and standard deviation

Laziness is a virtue.

Before writing code, check to see if someone else has already solved this problem.

Searching CPAN for "random AND deviation"... Result #1 is Math::Random.

use Math::Random 'random_normal'; my @random = random_normal(1000, 250, 20)
  • Comment on Re: how can i generate random numbers with predefined mean and standard deviation
  • Download Code