Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 7, 2020 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/99df61f2b3c80eabc4e7b190403820b3 to your computer and use it in GitHub Desktop.
Save parzibyte/99df61f2b3c80eabc4e7b190403820b3 to your computer and use it in GitHub Desktop.
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