Skip to content

Instantly share code, notes, and snippets.

@psobko
Created November 14, 2013 01:24
Show Gist options
  • Select an option

  • Save psobko/7459658 to your computer and use it in GitHub Desktop.

Select an option

Save psobko/7459658 to your computer and use it in GitHub Desktop.
Random Number
//int
int min = 0;
int max = 1;
int i = (arc4random()%(max-min+1))+min;
//BOOL
BOOL i = (arc4random()%(2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment