To generate the random numbers(method)

This java methods helps to generate the five digit random numbers .

import java.util.Random;
public class RondomNumberGenerator {
public int generateNumbers(int x)
{

Random generator = new Random();
int random_digit = new Double( Math.random() * 100000 ).intValue();
return random_digit;
}
}

This is the method class, if you want to generate the random number, just call this method. In your java class. You have to import the RondomNumberGenerator and then call this method.

After importing the RondomNumberGenerator ,
Call the method like this:
RondomNumberGenerator generate = new RondomNumberGenerator();
int x1=0;
int y=generate.generateNumbers(x1);
Y contains the five digit random number.
Enjoy the five digit random number.