This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_get_random_float

Function Documentation

float rc_get_random_float(void)

Returns a random floating point number between -1 and 1.

Uses standard C rand function and bitwise operations which is much faster than doing floating point arithmetic.

Returns

random floating point number between -1 and 1