Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ random_int
Function
random_int
library/MiscUtils.cpp:164–167 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
162
}
163
164
int random_int(int max)
165
{
166
return int(int64_t(rand()) * max / (int64_t(RAND_MAX) + 1));
167
}
168
169
std::string stl_sprintf(const char *fmt, ...) {
170
va_list lst;
Callers
1
random_index
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected