// Get random value between 0 and 99 int x = arc4random() % 100; // Get random number between 500 and 1000 int y = (arc4random() % 501) + 500);
本文共 213 字,大约阅读时间需要 1 分钟。
// Get random value between 0 and 99 int x = arc4random() % 100; // Get random number between 500 and 1000 int y = (arc4random() % 501) + 500);
转载于:https://www.cnblogs.com/chivas/archive/2012/04/09/2438979.html