/**
* Returns a random double value in the range [0..1), i.e. excluding 1.
*
* This function is thread- and reentrant-safe.
*/
/**
* Returns a random double value in the range [0..1), i.e. excluding 1.
*
* This function is thread- and reentrant-safe.
*/