Same as C, you would do
#include
#include
...
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).