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

sinan has asked for the wisdom of the Perl Monks concerning the following question: (math)

I need to generate random numbers; but they have to follow the standard distribution. The usual random number generation routines do not do this.

In other words, if I have a range of 1 to 100, I want the numbers around 50 to occur frequently, and the numbers about 1 or about 100 to occur with a very low frequency. With the usual random number generation routines, all numbers have the same frequency.

There must be a simple algorithm that create standard distribution numbers using the usual generator. (i.e. An algorithm that converts such numbers)
Does anybody know any function that does this? Can anybody write a simple algorithm for this purpose?

Please do not tell me any non-standard modules because I have trouble installing them.

TIA,
Sinan

Originally posted as a Categorized Question.