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

Method randInt

source/core/StarRandom.cpp:86–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86int64_t RandomSource::randInt(int64_t max) {
87 return randUInt(max);
88}
89
90uint64_t RandomSource::randUInt(uint64_t max) {
91 uint64_t denom = (uint64_t)(-1) / ((uint64_t)max + 1);

Callers 14

processRuleMethod · 0.80
findRandomWorldMethod · 0.80
PlantMethod · 0.80
worldHorizonImagesMethod · 0.80
chooseSkillsMethod · 0.80
BiomeItemDistributionMethod · 0.80
buildLayerMethod · 0.80
initMethod · 0.80
mainFunction · 0.80
initMethod · 0.80
generateMethod · 0.80
randIntFunction · 0.80

Calls 3

randUIntFunction · 0.85
StarExceptionClass · 0.85
randIntFunction · 0.85

Tested by 1

TESTFunction · 0.64