底下的code取自:Getting a Random Number
// Get random value between 0 and 99
int x = arc4random() % 100;
// Get random number between 500 and 1000
int y = (arc4random() % 501) + 500);
參考網址:Getting a Random Number
iOS Random Number Generator to a new view
沒有留言:
張貼留言