GT5-Unofficial/main/java/gregtech/common/GT_IteratorRandom.java

19 lines
419 B
Java
Raw Normal View History

2015-06-23 22:29:05 +00:00
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;
}
}