Random Within Range


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. int i = (arc4random()%(max-min+1))+min;

URL: http://swatiardeshna.blogspot.com/2009/08/random-number-generation-within-range.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.