Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyClass {
- public static void main(String[] args) {
- int random = (int)(Math.random()*101);
- int random2 = (int)(Math.random()*101);
- System.out.println(random);
- System.out.println(random2);
- System.out.println("Max and Min are "+(Math.max(random,random2))+" and "+(Math.min(random,random2)));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment