MCPcopy Create free account
hub / github.com/SoarGroup/Soar / SoarRandInt

Function SoarRandInt

Core/SoarKernel/src/soar_rand.cpp:20–23  ·  view source on GitHub ↗

integer in [0,2^32-1]

Source from the content-addressed store, hash-verified

18
19// integer in [0,2^32-1]
20uint32_t SoarRandInt()
21{
22 return gSoarRand.randInt();
23}
24
25// integer in [0,n] for n < 2^32
26uint32_t SoarRandInt(const uint32_t& max)

Callers 6

DoCaptureInputMethod · 0.85
DoRandMethod · 0.85

Calls 1

randIntMethod · 0.80

Tested by

no test coverage detected