标签: c random numbers
randomNums[i] = rand() % (0 + 11);
产生0到10之间的数字,但是如何使范围包含负数,-200到700?
谢谢
答案 0 :(得分:0)
randomNums[i] = rand() % 901 - 200