MCPcopy 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
164int random_int(int max)
165{
166 return int(int64_t(rand()) * max / (int64_t(RAND_MAX) + 1));
167}
168
169std::string stl_sprintf(const char *fmt, ...) {
170 va_list lst;

Callers 1

random_indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected