Please open the menu to show more

Wednesday, July 26, 2017

Solution for the 6 digits numeric otp generation

Implemented by


SANJEET DASH
BTECH CSE
MANAV 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