aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/GT_IteratorRandom.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/common/GT_IteratorRandom.java')
-rw-r--r--src/main/java/gregtech/common/GT_IteratorRandom.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/GT_IteratorRandom.java b/src/main/java/gregtech/common/GT_IteratorRandom.java
new file mode 100644
index 0000000000..e0e33bfd42
--- /dev/null
+++ b/src/main/java/gregtech/common/GT_IteratorRandom.java
@@ -0,0 +1,24 @@
+package gregtech.common;
+
+import java.util.Random;
+
+public class GT_IteratorRandom
+ extends Random
+{
+ private static final long serialVersionUID = 1L;
+ public int mIterationStep = 2147483647;
+
+ public int nextInt(int aParameter)
+ {
+ if ((this.mIterationStep == 0) || (this.mIterationStep > aParameter)) {
+ this.mIterationStep = aParameter;
+ }
+ return --this.mIterationStep;
+ }
+}
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.GT_IteratorRandom
+ * JD-Core Version: 0.7.0.1
+ */ \ No newline at end of file