Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
85
int 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
95
unsigned int Uint(unsigned int min, unsigned int max)
96
{
Callers
15
getNextFighterClassToSpawn
Method · 0.85
handleSearchJob
Method · 0.85
handleJob
Method · 0.85
handleFlee
Method · 0.85
handleEatChicken
Method · 0.85
handleLeaveDungeon
Method · 0.85
notifyActiveSpotCreated
Method · 0.85
refreshCreaturesDummies
Method · 0.85
addCreatureUsingRoom
Method · 0.85
doUpkeep
Method · 0.85
notifyActiveSpotCreated
Method · 0.85
notifyActiveSpotCreated
Method · 0.85
Calls
1
randint
Function · 0.85
Tested by
1
BOOST_AUTO_TEST_CASE
Function · 0.68