NORMAL

functionsupportedCore SQL functions

docs.snowflake.com ↗

Data generation functions

Generates a normally-distributed pseudo-random floating point number with specified mean and stddev (standard deviation).

Syntax

NORMAL( <mean> , <stddev> , <gen> )

Parameters

NameRequiredDescription
meanrequiredA constant specifying the value that the output values should be centered on.
stddevrequiredA constant specifying the width of one standard deviation. For example, if you specify a mean of 0.0 and a standard deviation of 1.0, approximately 68.2% of returned values from multiple calls will be between -1.0 and +1.0 (i.e. within one standard deviation of the mean). Similarly, if you choose a mean of 5.0 and a standard deviation of 2, then approximately 68.2% of values will be between 3.0 and 7.0.
genrequiredAn expression that serves as a raw source of uniform random numbers, typically the RANDOM function. For more information, see the Data Generation Functions Usage notes.

Returns

Returns a random floating-point number. The accumulated results of a large number of repeated calls approximate a normal distribution.

Usage notes