System.Math.RandG

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also

Code Examples