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

Function Double

source/utils/Random.cpp:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75double Double(double min, double max)
76{
77 if (min > max)
78 {
79 std::swap(min, max);
80 }
81
82 return uniform(min, max);
83}
84
85int Int(int min, int max)
86{

Callers 15

gaussianRandomDoubleFunction · 0.85
handleSearchJobMethod · 0.85
handleJobMethod · 0.85
shootMethod · 0.85
shootMethod · 0.85
shootMethod · 0.85
doUpkeepMethod · 0.85
useRoomMethod · 0.85
updateMeshesForTileMethod · 0.85
handleIdleActionMethod · 0.85
needsToEatMethod · 0.85

Calls 1

uniformFunction · 0.85

Tested by

no test coverage detected