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

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

package io.soffa.foundation.commons;

import org.apache.commons.lang3.RandomUtils;

public final class RandomUtil {

    private RandomUtil() {}

    public static String nextString() {
        return IdGenerator.shortUUID();
    }

    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