<p>I'm a Java head mainly, and I want a way to generate a pseudo-random number between 0 and 74. In Java I would use the method:</p>

<pre><code>Random.nextInt(74)
</code></pre>

<p>I'm not interested in a discussion about seeds or true randomness, just how you accomplish the same task in Objective-C. I've scoured Google, and there just seems to be lots of different and conflicting bits of information.</p>

Same as C, you would do
```
```
#include <time.h>
#include <stdlib.h>
...
srand(time(NULL));
int r = rand() % 74;
```
```
(assuming you meant including 0 but excluding 74, which is what your Java example does)
Edit:
Feel free to substitute
```
random()
```
or
```
arc4random()
```
for
```
rand()
```
(which is, as others have pointed out, quite sucky).