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);

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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!