Users Pricing

forum

home / developersection / forums / generating random numbers in objective-c

Generating Random Numbers in Objective-C

Anonymous User 2351 17 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.


I am a content writter !


1 Answers

Anonymous User 18 Aug 2015 Accepted Answer