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_double

Function Documentation

double rc_get_random_double(void)

Returns a random double-precision 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 double-precision floating point number between -1 and 1