int a = 50 + rand()%75; //a的范围50~125
int b = 75 + rand()%50; //b的范围75~125
int c = -rand()%50; //c的范围0~-50
随机值函数rand
最新推荐文章于 2024-05-04 23:45:19 发布
int a = 50 + rand()%75; //a的范围50~125
int b = 75 + rand()%50; //b的范围75~125
int c = -rand()%50; //c的范围0~-50