1.生成0-x之间的随机正整数 int value =arc4random_uniform(x + 1); 2.生成随机正整数 int value = arc4random() 3.通过arc4random()