MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / RandRange

Function RandRange

Source/Engine/Core/RandomStream.h:170–174  ·  view source on GitHub ↗

Helper function for rand implementations Minimum value Maximum value A random number in [min; max] range

Source from the content-addressed store, hash-verified

168 /// <param name="max">Maximum value</param>
169 /// <returns>A random number in [min; max] range</returns>
170 FORCE_INLINE int32 RandRange(int32 min, int32 max) const
171 {
172 const int32 range = max - min + 1;
173 return min + RandHelper(range);
174 }
175
176 /// <summary>
177 /// Helper function for rand implementations

Callers

nothing calls this directly

Calls 2

RandHelperFunction · 0.85
RandFunction · 0.70

Tested by

no test coverage detected