MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / RandomInt

Method RandomInt

pose_graph/ThirdParty/DUtils/Random.cpp:39–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39int DUtils::Random::RandomInt(int min, int max) {
40 int d = max - min + 1;
41 return int(((double)rand() / ((double)RAND_MAX + 1.0)) * d) + min;
42}
43
44// ---------------------------------------------------------------------------
45// ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected