Skip to content

Instantly share code, notes, and snippets.

@bad-mushroom
Created November 29, 2014 16:35
Show Gist options
  • Save bad-mushroom/f65566936c2f992a475a to your computer and use it in GitHub Desktop.
Save bad-mushroom/f65566936c2f992a475a to your computer and use it in GitHub Desktop.
Get Random Number
-(int)randomNumberBetween:(int)from to:(int)to
{
return (int)from + arc4random() % (to-from+1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment