MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / randomInt

Function randomInt

deps/SDL2/Xcode-iOS/Demos/src/common.c:15–19  ·  view source on GitHub ↗

Produces a random int x, min <= x <= max following a uniform distribution */

Source from the content-addressed store, hash-verified

13 following a uniform distribution
14*/
15int
16randomInt(int min, int max)
17{
18 return min + rand() % (max - min + 1);
19}
20
21/*
22 Produces a random float x, min <= x <= max

Callers 1

renderFunction · 0.70

Calls 1

randFunction · 0.50

Tested by

no test coverage detected