Code example for Random

Methods: nextInt

0
 
public class RandomUtils { 
    private static Random random = new Random();
 
    public static int randomInt() { 
        return random.nextInt();
    } 
 
    public static String randomString() {
        return RandomStringUtils.randomAlphabetic(10); 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java