Fix rand01() in case RAND_MAX==0x7FFFFFFF.