// // NSObject+YLRandom.m // mask // // Created by 翟玉磊 on 2018/12/9. // Copyright © 2018 翟玉磊. All rights reserved. // #import "NSObject+YLRandom.h" @implementation NSObject (YLRandom) + (NSInteger) yl_randomNumber:(NSInteger)from to:(NSInteger)to { return (NSInteger)(from + (arc4random() % (to - from + 1))); } @end