MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Random_Range

Function Random_Range

src/ExtMath.h:91–93  ·  view source on GitHub ↗

Returns integer from min inclusive to max exclusive */

Source from the content-addressed store, hash-verified

89CC_API float Random_Float(RNGState* rnd);
90/* Returns integer from min inclusive to max exclusive */
91static CC_INLINE int Random_Range(RNGState* rnd, int min, int max) {
92 return min + Random_Next(rnd, max - min);
93}
94
95CC_END_HEADER
96#endif

Callers 6

Music_RunLoopFunction · 0.85
Builder_DrawSpriteFunction · 0.85
Physics_TickRandomBlocksFunction · 0.85
ImprovedNoise_InitFunction · 0.85
NotchyGen_FloodFillWaterFunction · 0.85

Calls 1

Random_NextFunction · 0.85

Tested by

no test coverage detected