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

Function Random_Float

src/ExtMath.c:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150float Random_Float(RNGState* seed) {
151 int raw;
152
153 *seed = (*seed * RND_VALUE + 0xBLL) & RND_MASK;
154 raw = (int)(*seed >> (48 - 24));
155 return raw / ((float)(1 << 24));
156}
157
158
159/*########################################################################################################################*

Callers 11

Particles_RainSnowEffectFunction · 0.85
Particles_CustomEffectFunction · 0.85
LavaAnimation_TickFunction · 0.85
WaterAnimation_TickFunction · 0.85
NotchyGen_CarveCavesFunction · 0.85
NotchyGen_CarveOreVeinsFunction · 0.85
NotchyGen_FloodFillLavaFunction · 0.85
NotchyGen_PlantTreesFunction · 0.85
TreeGen_GrowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected