Created
January 27, 2014 02:20
-
-
Save sneakyness/8642402 to your computer and use it in GitHub Desktop.
boris_random
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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