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

Method getRandomInt

Source/Map/Random.cpp:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132int32 cRandomMap::getRandomInt(int32 pMin, int32 pMax) {
133 if(pMin || pMax)
134 return mParams.mRandom.getu(pMin, pMax);
135
136 if (!pMin && !pMax)
137 return 0;
138
139 return mParams.mRandom.getu();
140}
141
142int16 cRandomMap::getSeed() const {
143 return mParams.mRandom.getStartingSeed();

Callers

nothing calls this directly

Calls 1

getuMethod · 0.80

Tested by

no test coverage detected