blob: 4f23e7e0f7d8f675e45ccd2aa85334365f8d0189 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package utils;
import java.util.Random;
public final class VSRandom extends Random {
public VSRandom(long seedAdd) {
super(seedAdd*System.currentTimeMillis()+seedAdd);
}
public int nextInt() {
return Math.abs(super.nextInt());
}
public long nextLong(long mod) {
return Math.abs((super.nextLong() + System.currentTimeMillis()) % mod);
}
}
|