diff options
Diffstat (limited to 'sources/utils/VSRandom.java')
| -rw-r--r-- | sources/utils/VSRandom.java | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/sources/utils/VSRandom.java b/sources/utils/VSRandom.java deleted file mode 100644 index 6c1de90..0000000 --- a/sources/utils/VSRandom.java +++ /dev/null @@ -1,37 +0,0 @@ -package utils; - -import java.util.Random; - -/** - * The class VSRandom. Some customization of the standard Random class of Java. - * - * @author Paul C. Buetow - */ -public final class VSRandom extends Random { - /** - * Instantiates a new VSrandom object. - * - * @param seedAdd the seed to add. - */ - public VSRandom(long seedAdd) { - super(seedAdd*System.currentTimeMillis()+seedAdd); - } - - /* (non-Javadoc) - * @see java.util.Random#nextInt() - */ - public int nextInt() { - return Math.abs(super.nextInt()); - } - - /** - * Next long. - * - * @param mod the mod - * - * @return the random long - */ - public long nextLong(long mod) { - return Math.abs((super.nextLong() + System.currentTimeMillis()) % mod); - } -} |
