Implemented by
SANJEET DASH
BTECH CSEMANAV RACHNA INTERNATIONAL UNIVERSITY
import java.util.Random; public class Otp { public static void main(String[] args)
//Create object of Random Class Random r= new Random(); //Call the method to get random number
int x = r.nextInt((100000000 - 10000000)) + 10000000; //Print the random value System.out.println(x); }
}
No comments:
Post a Comment