MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / randBool

Function randBool

library/xorshift.h:143–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143template <typename Generator> bool randBool(Generator &g)
144{
145 return randBoundsInclusive(g, 0, 1) == 0;
146}
147
148template <typename T, typename Generator> T randBoundsInclusive(Generator &g, T min, T max)
149{

Callers 5

updateFallingMethod · 0.85
updateSlidingMethod · 0.85
generateMapMethod · 0.85
updateMoraleMethod · 0.85

Calls 1

randBoundsInclusiveFunction · 0.85

Tested by

no test coverage detected