MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / dMakeRandomVector

Function dMakeRandomVector

3rd_party/Src/ode/ode/src/misc.cpp:90–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89
90void dMakeRandomVector (dReal *A, int n, dReal range)
91{
92 int i;
93 for (i=0; i<n; i++) A[i] = (dRandReal()*REAL(2.0)-REAL(1.0))*range;
94}
95
96
97void dMakeRandomMatrix (dReal *A, int n, int m, dReal range)

Callers

nothing calls this directly

Calls 1

dRandRealFunction · 0.85

Tested by

no test coverage detected