我的随机数输出,每次运行我的游戏时以相同的顺序输出.为什么会这样?
我有
#include <cstdlib>
并使用它来生成随机数
randomDiceRollComputer = 1 + rand() % 6;
c++ random
c++ ×1
random ×1