summaryrefslogtreecommitdiff
path: root/sources/utils/VSRandom.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-29 20:30:46 +0000
committerPaul Buetow <paul@buetow.org>2008-05-29 20:30:46 +0000
commitdf1dbe48b99a5c86345a58d6da5727cb39547727 (patch)
tree6f3a83225f47592e94b1a1ba9953707f348ad21f /sources/utils/VSRandom.java
parenta4d12944746dcb4f9d1140dfd52c7d58b930c17d (diff)
new package documented.
Diffstat (limited to 'sources/utils/VSRandom.java')
-rw-r--r--sources/utils/VSRandom.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/sources/utils/VSRandom.java b/sources/utils/VSRandom.java
index 8881aeb..5a6391a 100644
--- a/sources/utils/VSRandom.java
+++ b/sources/utils/VSRandom.java
@@ -6,17 +6,19 @@ package utils;
import java.util.Random;
-// TODO: Auto-generated Javadoc
/**
- * The Class VSRandom.
+ * The Class VSRandom. Some customization of the standard Random class of Java.
+ *
+ * @author Paul C. Buetow
*/
public final class VSRandom extends Random {
+ /** The serial version uid */
private static final long serialVersionUID = 1L;
/**
- * Instantiates a new lang.process.removerandom.
+ * Instantiates a new VSrandom object.
*
- * @param seedAdd the seed add
+ * @param seedAdd the seed to add.
*/
public VSRandom(long seedAdd) {
super(seedAdd*System.currentTimeMillis()+seedAdd);
@@ -34,7 +36,7 @@ public final class VSRandom extends Random {
*
* @param mod the mod
*
- * @return the long
+ * @return the random long
*/
public long nextLong(long mod) {
return Math.abs((super.nextLong() + System.currentTimeMillis()) % mod);