MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / randInt

Function randInt

source/core/StarRandom.cpp:291–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289 }
290
291 long long randInt(long long max) {
292 MutexLocker locker(g_randMutex);
293 checkInit();
294 return g_randSource->randInt(max);
295 }
296
297 unsigned long long randUInt(unsigned long long max) {
298 MutexLocker locker(g_randMutex);

Callers 9

spawnInCellMethod · 0.85
AnimationMethod · 0.85
enterStageMethod · 0.85
ptrMethod · 0.85
setMethod · 0.85
getMethod · 0.85
randIntMethod · 0.85
randValueFromMethod · 0.85

Calls 2

checkInitFunction · 0.85
randIntMethod · 0.80

Tested by

no test coverage detected