42 #include <px4_platform_common/defines.h> 78 static float rand_max = RAND_MAX;
79 float rand_val = rand();
80 float bounds = getMax() - getMin();
81 return getMin() + (rand_val * bounds) / rand_max;
84 float getMin() {
return _min.get(); }
85 float getMax() {
return _max.get(); }