MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / generateEx

Function generateEx

src/Engine/RNG.cpp:143–147  ·  view source on GitHub ↗

* Generates a random positive integer up to a number. * @param max Maximum number, exclusive. * @return Generated number. */

Source from the content-addressed store, hash-verified

141 * @return Generated number.
142 */
143int generateEx(int max)
144{
145 uint64_t num = next();
146 return (int)(num % max);
147}
148
149}
150}

Callers

nothing calls this directly

Calls 1

nextFunction · 0.85

Tested by

no test coverage detected