aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/GT_IteratorRandom.java
blob: 79b8c2ae3794f97372027013669d10461e05bbe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
    }
}