随机数

- (int)getRandomNumberWithFrom:(int)from to:(int)to

{

    return (int)(from + (arc4random() % (to - from + 1)));

}

posted @ 2019-07-25 09:33  LSPBoy  阅读(159)  评论(0)    收藏  举报