MCPcopy Create free account
hub / github.com/UZ-SLAMLab/ORB_SLAM3 / RandomInt

Method RandomInt

Thirdparty/DBoW2/DUtils/Random.cpp:47–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47int DUtils::Random::RandomInt(int min, int max){
48 int d = max - min + 1;
49 return int(((double)rand()/((double)RAND_MAX + 1.0)) * d) + min;
50}
51
52// ---------------------------------------------------------------------------
53// ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected