random-gaussian

(random-gaussian [mean] [std-dev])


Description:

returns a random number from the gaussian distribution specified by mean and std-dev


Arguments:

           mean -- mean of the distribution (defaults to 0)

        std-dev -- the standard deviation of the distribution (defaults to 1)


Returns: real


Examples:

(random-gaussian) => -1.2

(random-gaussian 30 2.5) => 31.539



Back to index