Created
April 11, 2019 17:30
-
-
Save libbkmz/0a3bf8e607b5d1ee96f5a7a1785a00bd to your computer and use it in GitHub Desktop.
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
#include <stdlib.h> // for rand() and RAND_MAX | |
int randint(int min, int max) { | |
return (rand() % (max + 1 - min)) + min; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment