Skip to content

Instantly share code, notes, and snippets.

@recoverlee
Created May 24, 2016 03:17
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 recoverlee/af79a13ab216016a46717f394f096774 to your computer and use it in GitHub Desktop.
Save recoverlee/af79a13ab216016a46717f394f096774 to your computer and use it in GitHub Desktop.
RandomInt
int randomInt(int min, int max) {
return (int)(Math.random() * (max - min + 1)) + min;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment