I have the following NSCharacterSet and want to generate a random string valid for that character set.
NSMutableCharacterSet *characterSet = [NSMutableCharacterSet alphanumericCharacterSet];
[characterSet formUnionWithCharacterSet:[NSCharacterSet whitespaceCharacterSet]];
[NSCharacterSet characterSetWithCharactersInString:]
produces a character set out of a string. I want a method that does the opposite. Something like [NSString stringWithCharacterSet:]