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:
(我主要是Java头,我想要一种生成0到74之间的伪随机数的方法。在Java中我会使用这个方法:)
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.
(我对种子或真正的随机性的讨论不感兴趣,只是你如何在Objective-C中完成相同的任务。)
I've scoured Google, and there just seems to be lots of different and conflicting bits of information. (我搜索谷歌,似乎有很多不同的和相互矛盾的信息。)
ask by rustyshelf translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…