Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class e14 {
- public static void main(String [] args) {
- System.out.println(MyMath.getRandom(3,9));
- }
- }
- class MyMath {
- public static int getRandom(int min, int max) {
- return (int) (Math.random()*((max-min)+1))+min;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement