All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.soffa.foundation.commons.RandomUtil Maven / Gradle / Ivy

There is a newer version: 0.17.31
Show newest version
package dev.soffa.foundation.commons;

import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.RandomUtils;

public final class RandomUtil {

    private RandomUtil() {
    }

    public static String nextString() {
        return RandomStringUtils.random(32, true, true);
    }

    public static int nextInt() {
        return RandomUtils.nextInt();
    }

    public static int nextInt(int startInclusive, int endExclusive) {
        return RandomUtils.nextInt(startInclusive, endExclusive);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy