RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.RandG Function

Generates random numbers with Gaussian distribution.

Pascal
function RandG(Mean: Extended; StdDev: Extended): Extended;
C++
Extended RandG(Extended Mean, Extended StdDev);

Math

RandG produces random numbers with Gaussian distribution about the Mean. This is useful for simulating data with sampling errors and expected deviations from the Mean

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!