请高手帮助解释
A 3 B 128 A1 5 B1 256 int random4() { long x;
float random4=0.0;
x=rand();
x=A*x%B;
/*if(x>0) x=x+M;else*/
random4=(float)x/B;
if(random4>0.45) return 1;
else return 0;
/*return random4;*/
} double random3() {
long x;
double random3=0.0;
x=rand();
x=A1*x%B1;
random3=(float)x/B1;
return random3;
};
本人初学,请哪位大侠指点语句的涵义?希望详细些 多谢!