Created
April 27, 2016 15:01
-
-
Save sembozdemir/54984d77a62247dc6cbd5a972896a9ae to your computer and use it in GitHub Desktop.
RandomGenerator.java oldstyle
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
public class RandomGenerator { | |
public RandomGenerator() { | |
} | |
public int getNumber() { | |
// generate a random number Random | |
r = new Random(); | |
return r.nextInt(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment