MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / randI

Method randI

Engine/source/math/mRandom.h:60–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60inline S32 MRandomGenerator::randI(S32 i, S32 n)
61{
62 AssertFatal(i<=n, "MRandomGenerator::randi: inverted range.");
63 return (S32)(i + (randI() % (n - i + 1)) );
64}
65
66inline F32 MRandomGenerator::randF(F32 i, F32 n)
67{

Callers 15

afx_emitParticlesMethod · 0.60
calc_new_wavesPerRestMethod · 0.60
initRandomDataMethod · 0.60
TESTFunction · 0.60
_compileListMethod · 0.60
TESTFunction · 0.60
renderTimeMapMethod · 0.60
DebrisMethod · 0.60
onAddMethod · 0.60
addDecalMethod · 0.60
onAddMethod · 0.60

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.48
TESTFunction · 0.48