Below is the method used to generate random 5 digit number.
public int getRandomID ()
{
Random r = new Random()
return r.Next(10000,99999);
}
The number 10000, 99999 specifies the range.
Cheers for the help.
Post a Comment
1 comment:
Cheers for the help.
Post a Comment