Skip to content

Instantly share code, notes, and snippets.

@recoverlee
Created May 24, 2016 03:17
Embed
What would you like to do?
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