diff options
| author | Trophonix <502badgamer@gmail.com> | 2017-06-21 09:24:42 -0500 |
|---|---|---|
| committer | Trophonix <502badgamer@gmail.com> | 2017-06-21 09:24:42 -0500 |
| commit | b0b434b61405cc9832cc5307d6649b6d648faea2 (patch) | |
| tree | debc24f1b1ef18ae13bf6a30a62a65a2c6a0ff90 | |
| parent | 40831b6e015c9d1b2679657af9f673f129ab2011 (diff) | |
Use Math.random() for consistency
| -rw-r--r-- | src/main/java/org/drtshock/Potato.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/drtshock/Potato.java b/src/main/java/org/drtshock/Potato.java index abb0305..fc4c795 100644 --- a/src/main/java/org/drtshock/Potato.java +++ b/src/main/java/org/drtshock/Potato.java @@ -5,7 +5,6 @@ import java.net.HttpURLConnection; import java.net.URL; import java.util.ArrayList; import java.util.List; -import java.util.concurrent.ThreadLocalRandom; /** * A delicious tuber that is eaten by various peoples all over the world. @@ -172,7 +171,7 @@ public class Potato implements Tuber { } public Condiment(String name, boolean delicious) { - this(name, delicious, ThreadLocalRandom.current().nextInt(100) < 3); + this(name, delicious, Math.random() * 100 < 3); } /** |
