MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook / randomFloat

Function randomFloat

shared/UtilsMath.h:82–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82inline float randomFloat(float min, float max)
83{
84 return min + (max- min) * random01();
85}
86
87inline glm::vec3 randomVec(const glm::vec3& min, const glm::vec3& max)
88{

Callers 1

randomVecFunction · 0.85

Calls 1

random01Function · 0.85

Tested by

no test coverage detected