×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Objective-C
Posted by: Black Light
Added: Mar 3, 2013 12:20 PM
Views: 14
Tags: no tags
  1. -(int)getRandomNumber:(int)from to:(int)to {
  2.    
  3.     return (int)from + arc4random() % (to-from+1);
  4. }
  5.