IOS获取?-??的随机数
2016-09-03 本文已影响13人
蜗牛1992
+(int)GettRandomNumber:(int)iFrom to:(int)iTo
{
return (int)(iFrom + (arc4random() % (iTo - iFrom + 1)));
}
+(int)GettRandomNumber:(int)iFrom to:(int)iTo
{
return (int)(iFrom + (arc4random() % (iTo - iFrom + 1)));
}