MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / gaussianRandomDouble

Function gaussianRandomDouble

source/utils/Random.cpp:105–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105double gaussianRandomDouble()
106{
107 return std::sqrt(-2.0 * log(Double(0.0, 1.0))) * cos(2.0 * PI * Double(0.0, 1.0));
108}
109
110} // namespace Random

Callers 1

handleIdleActionMethod · 0.85

Calls 1

DoubleFunction · 0.85

Tested by

no test coverage detected