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

Function Int

source/utils/Random.cpp:85–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85int Int(int min, int max)
86{
87 if (min > max)
88 {
89 std::swap(min, max);
90 }
91
92 return randint(min, max);
93}
94
95unsigned int Uint(unsigned int min, unsigned int max)
96{

Callers 15

handleSearchJobMethod · 0.85
handleJobMethod · 0.85
handleFleeMethod · 0.85
handleEatChickenMethod · 0.85
handleLeaveDungeonMethod · 0.85
addCreatureUsingRoomMethod · 0.85
doUpkeepMethod · 0.85

Calls 1

randintFunction · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68