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
37.11.RandomStringUtils | ||||
37.11.1. | RandomStringUtils.randomNumeric | ![]() | ||
37.11.2. | RandomStringUtils.randomAlphanumeric | ![]() | ||
37.11.3. | RandomStringUtils.randomAlphabetic | ![]() | ||
37.11.4. | RandomStringUtils.random3 | ![]() | ||
37.11.5. | RandomStringUtils.random2 | ![]() | ||
37.11.6. | RandomStringUtils.random | ![]() |