tests/ieee.c
/* generate a random floating point number from min to max */
generate a random floating point number from min to max
generate a random floating point number from min to max
static double randfrom(double minimum, double maximum)
{
    double range = (maximum - minimum);
    double div   = RAND_MAX / range;
    return minimum + (rand() / div);
}
static double randfrom ( double minimum , double maximum ) { double range = ( maximum - minimum ) ; double div = RAND_MAX / range ; return minimum + ( rand ( ) / div ) ; }
generate a random floating point number from min to max
generate a random floating point number from min to max