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