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

Function RandomGamma

Src/Base/AMReX_Random.cpp:147–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147Real RandomGamma (Real alpha, Real beta)
148{
149 std::gamma_distribution<Real> distribution(alpha, beta);
150 int tid = OpenMP::get_thread_num();
151 return distribution(generators[tid]);
152}
153
154unsigned int Random_int (unsigned int n)
155{

Callers 1

AMREX_FORCE_INLINEFunction · 0.85

Calls 1

get_thread_numFunction · 0.85

Tested by

no test coverage detected