GT5-Unofficial/src/main/java/gregtech/common/GT_IteratorRandom.java
2015-10-21 21:11:56 -04:00

18 lines
419 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;
}
}