随机数

未定义标识符"arc4random"该怎么解决呢???

什么平台的?

windows平台

arc4random函数只能在Mac平台下,你试试random()或CCRANDOM_0_1() 方法吧。

哦哦,好的,谢谢啦~~~