Generate string of random characters cocoa? -


i know how generate random numbers, need string of random characters. have far:

nsstring *letters = @"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz123456789?%$";      char generated;     generated = //how define this?      nslog(@"generated =%c", generated);     [textfield setstringvalue:generated]; 

see q & a.

generate random alphanumeric string in cocoa


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -