如何得到指定位置的随机值? #include<time.h> srand(time(0)); int a = rand(); 如果希望得到百位的随机值,则a%100,十位则a%10 转载于:https://www.cnblogs.com/zhaoy-shine/p/10820145.html