MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / RandomValue

Method RandomValue

engine/Random/randomGen.cpp:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#endif
14
15float RandomGenerator::RandomValue(int seed) const
16{
17 return _valueTable(_seedTable(seed)) * (1.0 / static_cast<double>(RandomTable::Size));
18}
19
20float RandomGenerator::RandomValue() const
21{

Callers 15

RandomFunction · 0.45
SimulateLandscapeMethod · 0.45
GroundCollisionMethod · 0.45
ExplosionDammageMethod · 0.45
AttackThinkMethod · 0.45
FindHideBehindMethod · 0.45
SelectFireWeaponMethod · 0.45
InitMethod · 0.45
TrackTargetsMethod · 0.45
DetectorMethod · 0.45
FlagMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected