org.jcoderz.commons.util
Class RandomUtil
java.lang.Object
org.jcoderz.commons.util.RandomUtil
public final class RandomUtil
- extends Object
Utility class that provides random related utility functions.
- Author:
- Michael Griffel
|
Method Summary |
static long |
random(long min,
long max)
Returns a random long number between the value min
and the value max. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
random
public static long random(long min,
long max)
throws ArgumentMalformedException
- Returns a random long number between the value min
and the value max.
- Parameters:
min - the minimum value.max - the maximum value.
- Returns:
- a random long number between the value min
and the value max.
- Throws:
ArgumentMalformedException - if the value min
is greater than the value max
Copyright 2007 The jCoderZ Project.