Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-samples
/ svrand
Function
svrand
cpp/5_Domain_Specific/smokeParticles/ParticleSystem.cpp:166–166 ·
view source on GitHub ↗
random signed vector
Source
from the content-addressed store, hash-verified
164
165
// random signed vector
166
inline vec3f svrand() { return vec3f(sfrand(), sfrand(), sfrand()); }
167
168
// random point in circle
169
inline vec2f randCircle()
Callers
3
randSphere
Function · 0.85
initGrid
Method · 0.85
initCubeRandom
Method · 0.85
Calls
1
sfrand
Function · 0.85
Tested by
no test coverage detected