MCPcopy Create free account
hub / github.com/GPUOpen-Effects/GeometryFX / random_float

Function random_float

amd_lib/shared/d3d11/src/AMD_Rand.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 float random_float(uint seed, float a, float b)
37 {
38 float random = noise(seed) + 1.0f;
39
40 return a + random * 0.5f * (b - a);
41 }
42}

Callers

nothing calls this directly

Calls 1

noiseFunction · 0.85

Tested by

no test coverage detected