MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / RandomNormal

Function RandomNormal

Src/Base/AMReX_Random.cpp:126–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126Real RandomNormal (Real mean, Real stddev)
127{
128 std::normal_distribution<Real> distribution(mean, stddev);
129 int tid = OpenMP::get_thread_num();
130 return distribution(generators[tid]);
131}
132
133Real Random ()
134{

Callers 3

AMREX_FORCE_INLINEFunction · 0.85
FillRandomNormalFunction · 0.85

Calls 1

get_thread_numFunction · 0.85

Tested by

no test coverage detected