System.Math.RandG
Delphi
function RandG(Mean, StdDev: Single): Single;
function RandG(Mean, StdDev: Double): Double;
function RandG(Mean, StdDev: Extended): Extended;
C++
extern DELPHI_PACKAGE float __fastcall RandG(float Mean, float StdDev)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
Generates random numbers with Gaussian distribution.
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.