// // CCRandom.h // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface CCRandom : NSObject { } + (long)generateRandomNum; + (NSString *)generateRandomStringByLen:(int)len; @end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCRandom.h
github地址:
https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCRandom.h