Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenFodder/openfodder
/ next_gauss
Method
next_gauss
Source/Utils/diamondsquare.hpp:82–86 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
80
}
81
82
double next_gauss() {
83
84
return sqrt(-2.0*log(1.0 - next_double()))
85
* cos(6.283185307 * next_double());
86
}
87
88
double next_double()
89
{
Callers
1
random
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected