int randsafe(double *ranp);

