MCPcopy Create free account
hub / github.com/ddnet/ddnet / random_float

Function random_float

src/base/math.h:61–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61inline float random_float()
62{
63 return rand() / (float)(RAND_MAX);
64}
65
66inline float random_float(float min, float max)
67{

Callers 13

RandomizeSkinMethod · 0.85
PowerupShineMethod · 0.85
FreezingFlakesMethod · 0.85
SparkleTrailMethod · 0.85
SmokeTrailMethod · 0.85
SkidTrailMethod · 0.85
BulletTrailMethod · 0.85
PlayerSpawnMethod · 0.85
PlayerDeathMethod · 0.85
ConfettiMethod · 0.85
ExplosionMethod · 0.85
UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected