16 lines
429 B
Java
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;
|
|
}
|
|
}
|