package basics; public class Mathclass { public static void main(String[] args) { // TODO Auto-generated method stub // max System.out.println(Math.max(5, 10)); //minimum System.out.println(Math.min(5, 10)); //square root System.out.println(Math.sqrt(64)); //return positive value of x float x=-4.7f; System.out.println(Math.abs(x)); //Random number System.out.println(Math.random()); int rand=(int)(Math.random()*101); System.out.println(rand); int rand1=(int)(Math.random()*20); System.out.println(rand1); } }