![JAR search and dependency download from the Maven repository](/logo.png)
cicada.core.RandomUtil Maven / Gradle / Ivy
package cicada.core;
import java.util.Random;
import java.util.UUID;
public class RandomUtil
{
public static Random GetRandom()
{
return new Random(UUID.randomUUID().hashCode());
}
public static int GetRandomNext(int minValue, int maxValue)
{
return GetRandom().nextInt((maxValue-minValue)+minValue);
}
public static int GetRandomNext(int maxValue)
{
return RandomUtil.GetRandom().nextInt(maxValue);
}
public static int GetRandomNext()
{
return RandomUtil.GetRandom().nextInt();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy