MCPcopy Create free account
hub / github.com/OpenMW/openmw / rollProbability

Function rollProbability

components/misc/rng.cpp:44–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 float rollProbability(Generator& prng)
45 {
46 return std::uniform_real_distribution<float>(0, 1 - std::numeric_limits<float>::epsilon())(prng);
47 }
48
49 float rollClosedProbability(Generator& prng)
50 {

Callers 9

emitRippleMethod · 0.85
applyMethod · 0.85
calculateThunderMethod · 0.85
wanderNearStartMethod · 0.85
projectileHitFunction · 0.85
startCombatMoveMethod · 0.85
playIdleDialogueMethod · 0.85
getRandomAttackTypeMethod · 0.85
initNearbyPackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected