Created
January 2, 2020 19:30
-
-
Save arpitbbhayani/dbe19284747023c3b35d1da71c6b5e8f to your computer and use it in GitHub Desktop.
generating random number using datetime.h in c
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
int | |
get_random_number(int max) { | |
return time(NULL) % max; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment