MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Random

Method Random

code/game/Q3_Interface.cpp:9755–9758  ·  view source on GitHub ↗

Get a random (float) number.

Source from the content-addressed store, hash-verified

9753
9754// Get a random (float) number.
9755float CQuake3GameInterface::Random( float min, float max )
9756{
9757 return ((rand() * (max - min)) / (float)RAND_MAX) + min;
9758}
9759
9760void CQuake3GameInterface::Play( int taskID, int entID, const char *type, const char *name )
9761{

Callers 7

GetFloatMethod · 0.80
GetVectorMethod · 0.80
GetMethod · 0.80
WaitMethod · 0.80
ParseLoopMethod · 0.80
EvaluateConditionalMethod · 0.80
CheckLoopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected