我在我学习的游戏中找到了这行代码
int charaCode = arc4random() % (126-'!'+1)+'!';
我知道arc4random是什么,但表达式对我来说很奇怪.
是什么目的
(126-'!'+1)+'!'
它总是评估为127.
c
c ×1