-
-
Save parzibyte/99df61f2b3c80eabc4e7b190403820b3 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
int aleatorio_en_rango(int minimo, int maximo) | |
{ | |
return minimo + rand() / (RAND_MAX / (maximo - minimo + 1) + 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment