MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / RandFloat

Function RandFloat

SampleFramework12/v1.00/SF12_Math.h:579–582  ·  view source on GitHub ↗

Returns a random float value between 0 and 1

Source from the content-addressed store, hash-verified

577
578// Returns a random float value between 0 and 1
579inline float RandFloat()
580{
581 return rand() / static_cast<float>(RAND_MAX);
582}
583
584// Returns x * x
585template<typename T> T Square(T x)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected