Java generate two digit random number

Random random = new Random();
int ends = random.nexIn (99);
String.format("%02d",ends);//If there are less than two digits, add 0 in front

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324791969&siteId=291194637