cleanup and reformat
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-09-05 00:06:35 +02:00
parent 14b54501fd
commit fd2970fa59
81 changed files with 1245 additions and 766 deletions

View File

@@ -10,7 +10,8 @@ import java.util.Random;
public class RandomUtil
{
private RandomUtil() {
private RandomUtil()
{
throw new IllegalStateException("Utility class");
}
@@ -27,8 +28,8 @@ public class RandomUtil
*/
public static int getRandomNumber(int min, int max)
{
if(min == max) return min; // dumbass
if(min > max) // swap em
if (min == max) return min; // dumbass
if (min > max) // swap em
{
min = min - max;
max = min + max;
@@ -47,7 +48,8 @@ public class RandomUtil
}
public static Random getRandom() {
public static Random getRandom()
{
return randomInstance;
}