Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
82
inline float randomFloat(float min, float max)
83
{
84
return min + (max- min) * random01();
85
}
86
87
inline glm::vec3 randomVec(const glm::vec3& min, const glm::vec3& max)
88
{
Callers
1
randomVec
Function · 0.85
Calls
1
random01
Function · 0.85
Tested by
no test coverage detected