Tonight I Googled how to make a random number generator for C. Every tutorial seemed overly complex and using the current time to help generate a random seed. I then Googled the same thing but for Objective-C and found this link. http://stackoverflow.com/questions/160890/generating-random-numbers-in-objective-c
The Objective C was much more simple
But the description says it is from the 'Standard C library'? I am trying to under why when I googled it for C it was so much more complex then the Objective-C if it is from a Standard C library?
Still learning C so sorry if this is a obvious answer I don't get.
-Lars
The Objective C was much more simple
Code:
#include <stdlib.h>
...
...
int r = arc4random() % 74;
Still learning C so sorry if this is a obvious answer I don't get.
-Lars