Skip to content

Instantly share code, notes, and snippets.

@sneakyness
Created January 27, 2014 02:20
Show Gist options
  • Save sneakyness/8642402 to your computer and use it in GitHub Desktop.
Save sneakyness/8642402 to your computer and use it in GitHub Desktop.
boris_random
#define boris_random(smallNumber, bigNumber) ((((float) (arc4random() % ((unsigned)RAND_MAX + 1)) / RAND_MAX) * (bigNumber - smallNumber)) + smallNumber)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment