MCPcopy Create free account
hub / github.com/carbonengine/trinity / frand

Function frand

trinity/Particle/Tr2CapsuleShapeAttributeGenerator.cpp:16–19  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Returns a random number between "a" and "b". Arguments: a - Lower limit for random value range. b - Upper limit for random value range. Return Value: Random number between "a" and "b". --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

14// Random number between "a" and "b".
15// --------------------------------------------------------------------------------------
16inline float frand( float a, float b )
17{
18 return a + ( b - a ) * Tr2ParticleSystem::RandFloat();
19}
20
21// --------------------------------------------------------------------------------------
22// Description:

Callers 1

GenerateMethod · 0.70

Calls 1

RandFloatFunction · 0.85

Tested by

no test coverage detected