Created
August 22, 2015 14:10
-
-
Save goliver79/d3803d1a24cff520e0e1 to your computer and use it in GitHub Desktop.
[ANDROID-JAVA] Random number
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
//Create an object of the Random class so we can use it | |
Random randInt = new Random(); | |
//Generate a random number between 0 and 5 | |
int randNum = randInt.nextInt(6); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment