1.30.2012

Objective-C: Creating a Random Number and Storing To NSString

I wanted to generate a random number and convert it to NSString:

NSString *myRandomNumber = [NSString stringWithFormat: @"%u", arc4random()];

No comments:

Post a Comment