iPhone

[objc] 난수, random, arc4random

tenn 2013. 1. 7. 13:14



 NSInteger rand = arc4random() % 10 +1;

// 1〜10


저작자표시 (새창열림)