MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / map_GetRandomY

Method map_GetRandomY

Source/Fodder.cpp:7647–7650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7645}
7646
7647int16 cFodder::map_GetRandomY() {
7648
7649 return tool_RandomGet(1, mMapLoaded->getHeight() - 1);
7650}
7651
7652uint16 cFodder::tool_RandomGet(size_t pMin, size_t pMax) {
7653 uint16 Rand = mRandom.getu();

Callers

nothing calls this directly

Calls 1

getHeightMethod · 0.45

Tested by

no test coverage detected