[#absl-Gaussian]
= xref:absl.adoc[absl]::Gaussian
:relfileprefix: ../
:mrdocs:

Produces a floating point value from a Gaussian (Normal) distribution&period;

== Synopsis

Declared in `&lt;absl&sol;random&sol;distributions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename RealType,
    typename URBG&gt;
RealType
Gaussian(
    URBG&& urbg,
    RealType mean = 0,
    RealType stddev = 1);
----

== Description

`absl&colon;&colon;Gaussian` produces a floating point number selected from the Gaussian (ie&period; &quot;Normal&quot;) distribution&period; `T` must be a floating point type, but may be inferred from the types of `mean` and `stddev`&period;

See https&colon;&sol;&sol;en&period;wikipedia&period;org&sol;wiki&sol;Normal&lowbar;distribution

Example&colon;

absl&colon;&colon;BitGen bitgen&semi; &period;&period;&period; double giraffe&lowbar;height &equals; absl&colon;&colon;Gaussian(bitgen, 16&period;3, 3&period;3)&semi;

== Return Value

A random value drawn from the Gaussian distribution&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *urbg*
| The uniform random bit generator&period;
| *mean*
| The mean of the distribution&period;
| *stddev*
| The standard deviation of the distribution&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
