Mega Code Archive

 
Categories / Java Tutorial / Apache Common
 

RandomStringUtils randomNumeric

import org.apache.commons.lang.RandomStringUtils; public class MainClass {   public static void main(String[] args) {     // Begin Lottery code     System.out.print("6) The two digit lucky number for the day is >>>");     System.out.println(RandomStringUtils.randomNumeric(2));     // End Lottery code   } } 6) The two digit lucky number for the day is 96