import java.util.*;
class RandomNumber
{
public static void main(String[] args)
{
//Using random class object
Random ran = new Random();
System.out.println("Random number using Random class:");
for (int i=1;i<=5 ;i++ )
{
System.out.println(ran.nextInt(100));
}
//using ramdom() method
System.out.println("\nRandom number using random method:");
for (int i=1;i<=5 ;i++ )
{
System.out.println(Math.random());
}
}
}