Create Unique ID


	//Create unique ID
	CFUUIDRef newUniqueId = CFUUIDCreate(kCFAllocatorDefault);
	CFStringRef newUniqueIdString = CFUUIDCreateString(kCFAllocatorDefault, newUniqueId);
	MyString = [MyString stringByAppendingPathComponent:(NSString *)newUniqueIdString];
	CFRelease(newUniqueId);
	CFRelease(newUniqueIdString);

Random General

There is not a class in Objective-C with a method for generating random numbers but C may be used.  E.g: rand(), srand(), random(), srandom() and arc4random().

(more…)