只是想知道,如果我有以下代码:
int randomNum = rand() % 18 + (-9);
这会创建一个从-9到9的随机数吗?
c++ random numbers
c++ ×1
numbers ×1
random ×1