Part of what I am developing is a random company name generator. It relies on several arrays of name parts. I use a function rand()to draw random parts of a name. However, the same "random" numbers are always generated in the same sequence every time I launch the application, so the same names always appear.
So, I was looking around of SO, and in C is a function srand(), to "seed" the random function with something like the current time, to make it more random - eg srand(time(NULL)). Is there something similar for Objective-C that I can use for iOS development?
source
share