MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / randomInt

Function randomInt

native/Base.h:282–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280 }
281
282 inline int randomInt(int min, int max) {
283 // std::srand((unsigned int)std::time(nullptr));
284 int rand = std::rand();
285 return min + rand % (max - min);
286 }
287
288
289 inline int randomInt(int min, int max, int seed) {

Callers 7

getRandomCharsFunction · 0.85
toOperateMethod · 0.85
patchOperateMethod · 0.85
selectActionByQValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected