GT5-Unofficial/src/main/java/gregtech/common/GT_IteratorRandom.java
2016-06-21 18:50:29 +02:00

16 lines
429 B
Java

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;
}
}