forum

Home / DeveloperSection / Forums / Generating Random Numbers in Objective-C

Generating Random Numbers in Objective-C

Anonymous User204517-Aug-2015

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:

Random.nextInt(74)

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 The Google, and it just seems to be lots of different and conflicting bits of information.


Updated on 18-Aug-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By