MCPcopy Create free account
hub / github.com/Raais/ImStudio / RandomFloat

Method RandomFloat

src/utils/ims_utils.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42float utils::RandomFloat(float a, float b)
43{
44 float random = ((float) rand()) / (float) RAND_MAX;
45 float diff = b - a;
46 float r = random * diff;
47 return a + r;
48}
49
50ImVec4 utils::RainbowCol()
51{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected