MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / getRandom

Function getRandom

test/OpenCL/ParallelPrimitives/main.cpp:123–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121
122template <typename T>
123__inline T getRandom(const T& minV, const T& maxV)
124{
125 float r = (rand() % 10000) / 10000.f;
126 T range = maxV - minV;
127 return (T)(minV + r * range);
128}
129
130struct b3SortDataCompare
131{

Callers 2

boundSearchTestFunction · 0.85
radixSortTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected