diff --git a/Mage/src/main/java/mage/util/RandomUtil.java b/Mage/src/main/java/mage/util/RandomUtil.java index 3881b61e4a..e6ad582021 100644 --- a/Mage/src/main/java/mage/util/RandomUtil.java +++ b/Mage/src/main/java/mage/util/RandomUtil.java @@ -8,21 +8,18 @@ import java.util.concurrent.ThreadLocalRandom; */ public class RandomUtil { - private final static ThreadLocalRandom random = ThreadLocalRandom.current(); - public static Random getRandom() { - return random; - } + public static Random getRandom() {return ThreadLocalRandom.current();} public static int nextInt() { - return random.nextInt(); + return ThreadLocalRandom.current().nextInt(); } public static int nextInt(int max) { - return random.nextInt(max); + return ThreadLocalRandom.current().nextInt(max); } public static boolean nextBoolean() { - return random.nextBoolean(); + return ThreadLocalRandom.current().nextBoolean(); } }