2013-11-19 乱数を生成する objc objective-C int r = arc4random_uniform(3); // range is 0~2 参考: http://programming-ios.com/objective_c-arc4random/