MCPcopy Create free account
hub / github.com/Simple-Robotics/Simple / rand_interval

Function rand_interval

tests/forward/simulation-combine-constraints.cpp:141–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141double rand_interval(double rmin, double rmax)
142{
143 double val = rand() / (static_cast<double>(RAND_MAX) + 1);
144 return (val * (rmax - rmin) + rmin);
145}
146
147// ---------------------------------------------------------------------------------------------------
148// Actual tests

Callers 2

test_moving_sceneFunction · 0.85
test_constraint_sceneFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_moving_sceneFunction · 0.68
test_constraint_sceneFunction · 0.68